Update Lesson 2 Task 4 to use proper variable names

This commit is contained in:
Stanislav Mykhailenko 2023-01-27 11:51:37 +02:00
parent 7dca0a4db0
commit 2a3548933a
GPG key ID: 1E95E66A9C9D6A36

View file

@ -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: