<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># guessNumber.py
""" Lecture example to demonstrate while-loop
"""

import random

secret_num= random.randint(0,10)
guessed_it= False
print("I'm thinking of a number.")

while not guessed_it:
    guess= int(input('Guess it: '))
    guessed_it= guess==secret_num
print('Well done!')
</pre></body></html>