0

Am I doing something wrong?

When I do loops, the output is always 1 Finished! 2 Finished! 3 Finished! etc...

11th Feb 2017, 2:43 PM
Dan
Dan - avatar
3 Answers
+ 7
Sounds like a case of mis-indentation of statement for printing "Finished", causing it to be included into the loop.
11th Feb 2017, 2:45 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
it will best to see what you are doing dan so we can help so please post your code here then we see
11th Feb 2017, 2:43 PM
EMMANUEL NUOTAH TUONUO DERY
EMMANUEL NUOTAH TUONUO DERY - avatar
0
if I understand correctly .. you want a code that shows the number in a certain range, then print finished : for a in range (4): print (a) print("finished")
11th Feb 2017, 10:52 PM
ramzi
ramzi - avatar