When I run this code it shows me no out put, why!? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When I run this code it shows me no out put, why!?

import time for i in range(1,101): time.sleep(0.1) print ( 'hacking', i, '%') if i == 100: print ('hack successful ')

7th Aug 2020, 10:00 PM
Nicholas Castro
Nicholas Castro - avatar
1 Answer
+ 1
It looks like line 4 with print on it is indented incorrectly, a space behind the line above
20th Dec 2022, 8:56 PM
Michael Stradling