Hint

🧠 Not sure where to start?

Start by creating an infinite loop that keeps asking the user for input:

while True:
    user_input = input("Enter a number: ")

Now think: how can you check if the user wants to quit and how to turn the input into a number? Maybe use an if condition to break the loop and then convert the input to a number:

if user_input == 'q':
    break
number = int(user_input)

Then print the square using number ** 2.