You are viewing a single comment's thread. Return to all comments →
This code passed the 0 test but not the following test. Am I doing anything wrong?I played around with it in netbeans IDE and it worked there.
i = 0 while i < 5: print i * i i += 1
Same with this code for i in range(0,5): print i * i
Seems like cookies are disabled on this browser, please enable them to open this website
Loops
You are viewing a single comment's thread. Return to all comments →
This code passed the 0 test but not the following test. Am I doing anything wrong?I played around with it in netbeans IDE and it worked there.
i = 0 while i < 5: print i * i i += 1
Same with this code for i in range(0,5): print i * i