Update Lesson 2 Task 4 to use proper variable names
This commit is contained in:
parent
7dca0a4db0
commit
2a3548933a
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ try:
|
|||
|
||||
factorial = 1
|
||||
|
||||
for i in range(2, number + 1):
|
||||
factorial = factorial * i
|
||||
for nextNumber in range(2, number + 1):
|
||||
factorial = factorial * nextNumber
|
||||
|
||||
print(str(number) + " factorial is " + str(factorial))
|
||||
except ValueError:
|
||||
|
|
Reference in a new issue