0

After i = i +1 i see a space( one line) but how to add dat space?

23rd Aug 2016, 6:05 AM
Sandeep Sreenivasanunni
Sandeep Sreenivasanunni - avatar
6 ответов
0
press enter?
23rd Aug 2016, 6:19 AM
Replicadoe
0
didnt work! dat enter let to an infinite loop!
23rd Aug 2016, 6:21 AM
Sandeep Sreenivasanunni
Sandeep Sreenivasanunni - avatar
0
am using python 3.5 in windows.
23rd Aug 2016, 7:09 AM
Sandeep Sreenivasanunni
Sandeep Sreenivasanunni - avatar
0
i don't understand can you visualize it? (Put the code here)
23rd Aug 2016, 9:59 AM
Replicadoe
0
its like the example is i=1 while i<=5: print(i) i = i+1 print("finished!") my question how to get dat last line working bcoz am getting an error if i press enter 2 times aftr i=i+1 n if i dont press enter 2 time the last line is not getting excuted!
23rd Aug 2016, 10:51 AM
Sandeep Sreenivasanunni
Sandeep Sreenivasanunni - avatar
0
Did you indent using tab? Mine seems to work Look: i = 1 while i <= 5: print(i) i = i + 1 print("finished!")
29th Aug 2016, 8:09 AM
Replicadoe