While loop in Python
The while loop iterates a block of code continuously until the given condition becomes false.
your code here
i = 0
while(i < 10) :
The Output for the above code will be :
Note: Always write the increment/decrement statement inside the while loop. If not given, it will become an infinite loop.
In python, i++ or i-- is not supported. Instead we use i+=1 and i-=1.
© Copyright - 2018 - 2022 | All rights reserved at Funda of Web IT