Code analysis

Report a typo

Take a look at the code. Write down the last line of the output in case the user enters 15.

def check_number(x):
    if 3 < x < 15:
        print(x, "is the right number!")
    else:
        print(x, "is the wrong number!")


number = int(input("Enter your number: "))
check_number(number)
Enter a short text
___

Create a free account to access the full topic