হোয়াইল লুপ
while [a condition is True]:
[do something]>>> a=10
>>> while a>0:
... print ("Value of a is",a)
... a=a-2
... print ("Loop is Completed")
...
Value of a is 10
Loop is Completed
Value of a is 8
Loop is Completed
Value of a is 6
Loop is Completed
Value of a is 4
Loop is Completed
Value of a is 2
Loop is CompletedLast updated
Was this helpful?