8 Answers
+ 6
Here is what I came up with. Please note that I'm not a Python developer and haven't touched it since Python 2, so forgive me for my noobness with it. lol
https://code.sololearn.com/csmv4n6ob6NQ/#py
startingVal = 0
endingVal = 1
while True:
result = startingVal + endingVal
print(result)
endingVal = startingVal
startingVal = result
if result > 20:
break
::::: OUTPUT ::::::
1
1
2
3
5
8
13
21
+ 4
@Turtle
0 + 1 = 1
1 + 1 = 2
2 + 1 = 3
3 + 2 = 5
5 + 3 = 8
8 + 5 = 13
+ 3
This is the same code from Fata Err0r
https://code.sololearn.com/cJt07H84WDgf/#py
Except i changed some of the code.(really small changes)
+ 2
@Jakob Marley Oh thanks
+ 1
@Turtle
Anytime bro!
- 2
I don't see a pattern