0

how can i print 2 for 20 times in python's while loop

3rd Apr 2020, 11:02 AM
HAMZA
2 Respuestas
0
x = 20 while x>0: print("2") x=x-1
3rd Apr 2020, 11:04 AM
Marco
Marco - avatar
0
Like this: x = 0 while x < 20: print("2") x+=1
3rd Apr 2020, 11:15 AM
Bibek Oli
Bibek Oli - avatar