06-While Loops with multiple statements.py


Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...


Code Snippet

#  You may repeat one statement or multiple statements.

x = 1
while x < 5:
    print ("Hi moose")
    x = x + 1
    print ("I love you")


print("this")
print("this too")

       
                    

Try it yourself