Answers for "while operator in python"

5

while loop in python

j = 0
while j < 3:
  print("hello") # Or whatever you want
  j += 1
#This runs the loop until reaches 3 and above
Posted by: Guest on November-26-2020
0

do while in python

while True:
    if condition:
        break
Posted by: Guest on June-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language