232,508 views
31 votes
31 votes
Create a Python script that will compare two (2) numbers entered by the user. Refer to the attached image and to the following algorithm. There is no need to create a class similar to how Java works.

3.1. User enters the first number.
3.2. User enters the second number.
3.3. If the first number is less than, greater than, or equal the second number, a message is displayed.
Please Help me. Thank You!
Marry Christmas!​

User Jeegar Patel
by
2.8k points

1 Answer

14 votes
14 votes

Answer:

number1 = input("Choose a first number: ")

number2 = input("Choose a second number: ")

if number1 >= number2:

print("Number 1 is greater")

User Jonhurlock
by
3.2k points