T54
0
Q:

while loops

while (condition):
  doThis();
10
#there are 2 ways to make a while loop in python

#first way -

while True:
  (#what ever you want in the loop)
    
#second way - 
    
while 1:  
    (#what ever you want in the loop)
6
It contunually does a command while a certain condition is true
while (condition)	{
	//code stuffs
}
4

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
regular expression
1
While(Var == soemething){
	
    Do something

}
-1

New to Communities?

Join the community