Perleone
0
Q:

while python

while (condition):
  doThis();
10

i = 1

while i < 6:

  print(i)

    if i == 3:
    break
  i += 1
 
6

i = 1

while i < 6:

  print(i)

  i += 1

 
4

i = 0

while i < 6:

    i += 1

  if i == 3:
    continue
  print(i)

 
3
# while loop (python)
i = 0 

while i < 10:
  	i +=1 #or i = i + 1 
    print(i)
0
while expression:
    statement(s)
0
a = 'Gamer'

while(a<20):
  print(a)
  #It will print a or Gamer 20 times
0

New to Communities?

Join the community