AUTUMN TERM 1 - PYTHON BASICS 4
COMPARISONS
PROGRESS POINT TASK:
Create a new script called ‘Homework 4 Progress Point’.
In the script, write a program to:
Create a new script called ‘Homework 4 Progress Point’.
In the script, write a program to:
- ask the user to input a number between 1 and 10 (remember, you will need to convert the number input into an integer using the int() function)
- if the number entered is greater than or equal to 6, you should output the message “The number is greater than 5”. Otherwise, output the message “The number is less than 6”.
- if the number is equal to 7, output the message “That is a lucky number!”