For Loop Print Hello World 10 times
Solution
for count in range(10): print('Hello World')
Are you bored yet problem
Question
Using “While Loop” create a forever loop which will keep asking the user “Are you bored?” until the user enter “y” then break from the loop
Solution 1
while True: bored = input('Are you bored yet? ') if bored == 'y': break
Solution 2
bored = input('Are you bored yet? ') while bored != 'y': bored = input('Are you bored yet? ')