+ 3
Would you please tell me my mistake?
3 Answers
+ 5
Or you could switch âi>=7â to âi<=7â. Then delete the else, but keep the iteration i+=1, and your code works also. Omaâs solution is more elegant, but either one works :). I hope this helps :).
+ 4
u mix while and if
here is a working version of your code
https://code.sololearn.com/c3011VUtt9Ir/?ref=app
+ 3
@jared yeah it works too! (-: