Skip to content

Commit 102439b

Browse files
author
devxl
committed
Wrote factorial function...fixed missing parantheses bug
1 parent 649f1cd commit 102439b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

factorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ def test_factorial():
2525
# This is a way to determine either file was "executed", so if it was
2626
# imported (by e.g. pytest) as a library, we should not run code
2727
# below
28-
nconditions = raw_input("Please enter number of conditions: ")
28+
nconditions = input("Please enter number of conditions: ")
2929
norders = factorial(nconditions)
3030
print("Number of possible trial orders: " + str(norders))

0 commit comments

Comments
 (0)