0

Why there is no output?

i=0 while i <= 12: print("@"*i) i+=i Can any one tell me why it isn't going any output Not even 'No output'

15th Apr 2020, 6:08 AM
Amarnath
Amarnath - avatar
1 Resposta
+ 5
Initialize <i> with 1 instead of 0. `i += i` while <i> was initialized by one will just add zero to zero. Besides print(" @" * 0) doesn't really print anything at all 😁
15th Apr 2020, 6:21 AM
Ipang