Skip to content

Commit 5a2e5a2

Browse files
author
Huu Nguyen
committed
Change terms to N
1 parent 8b2f1b3 commit 5a2e5a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Numbers/fibonacci.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ def validate_positive_integer():
2424
while True:
2525
s = raw_input("Which term in the Fibonacci sequence you want to see? ")
2626
try:
27-
terms = int(s)
28-
if terms >= 500:
27+
N = int(s)
28+
if N >= 500:
2929
print "Enter a number smaller than 500."
30-
elif terms > 0:
31-
return terms
30+
elif N > 0:
31+
return N
3232
else:
3333
print "Enter a positive integer."
3434
except ValueError:

0 commit comments

Comments
 (0)