+ 3
Would you please tell me my mistake?
3 Antworten
+ 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! (-: