I created a code that shows the digits in the Fibonacci sequence. I want a way to allow the user to enter the number of numbers shown. This is my code:
total = 1
total2 = 0
for i in range (*Number of numbers/2*):
total = total + total2
print (total)
total2 = total + total2
print (total2)
#Shows golden ratio
total3 = total2/total
print (total3)
Can someone help me? It would be great!
Here is an example in Python 2.x of how to get an integer:
Edit: Untested Python 3 version: