Computer Science, asked by Aimanlagasan, 8 months ago

Create a Python script that will compare two (2) numbers entered by the user

Answers

Answered by rasmiyap51
0

Answer:

3 Answers. a = input("Enter the first number: ") b = input("Enter the second number: ") # if a is b: - Compares id's, and can cause inconsistencies. Use == instead. if a == b: print "Both inputs are equal" else: print "Your input is not equal."

Answered by rajeshdav30
0

Answer:

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

Similar questions