11. Using “For Loop”, print the following to the shell 8 times: “Hello World” (2 points)
Answer:
for count in range(8):
print('Hello World')12. Using “While Loop”, create a forever loop that will keep asking the user “Are you bored?” until the user enters “exit” then break from the loop (3 points).
Answer:
while True:
answer = input('Are you bored? ')
if answer == 'exit':
break