syntax for while loop is
while(condition):
body of loop
next_iteration
first statement after while loop
Example : you want to print hello 10 times and end one times using while loop
i=1; #initialization
while( i<=10): #condition
print("Hello") #body of loop
i=i+1 # next iteration
print("end") //outside the while loop