Create a Python script that will compare two (2) numbers entered by the user
Answers
Answered by
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
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
Math,
4 months ago
India Languages,
4 months ago
Math,
4 months ago
Social Sciences,
8 months ago
Math,
1 year ago
Science,
1 year ago