From 102439b6a59fa432eecb9e689851762d615c989e Mon Sep 17 00:00:00 2001 From: devxl Date: Thu, 24 Jan 2019 11:57:33 -0500 Subject: [PATCH] Wrote factorial function...fixed missing parantheses bug --- factorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/factorial.py b/factorial.py index b6232a7..ec52043 100755 --- a/factorial.py +++ b/factorial.py @@ -25,6 +25,6 @@ def test_factorial(): # This is a way to determine either file was "executed", so if it was # imported (by e.g. pytest) as a library, we should not run code # below - nconditions = raw_input("Please enter number of conditions: ") + nconditions = input("Please enter number of conditions: ") norders = factorial(nconditions) print("Number of possible trial orders: " + str(norders))