Answer to Question #257477 in Python for Trina

Question #257477

Let us now try comparing two numbers by letting the user input two different numbers and say "Greater" if the first inputted number is greater than the second one, and "Lesser" if it’s the other way around.

Let's go!


Input

A line containing two different numbers separated by a space.

1.2·1.02

Output

A line containing a string.

Greater
1
Expert's answer
2021-11-03T08:16:21-0400
a,b = [float(i) for i in input().split()]
if a > b:
    print('Greater')
else:
    print('Lesser')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment