Answer to Question #261540 in Python for Brandao

Question #261540

2. Two is Greater Than One

by CodeChum Admin

They say that the one in first place is always greater than the one in the second and third place. Are they always right?


Instructions:

  1. Input three integers in different lines (one each line).
  2. Print out the integers in one line.
  3. If the 1st integer is greater than or equal to both the 2nd integer and the 3rd integer, print "Yes".

Instructions

  1. Input three integers in different lines (one each line).
  2. Print out the integers in one line.
  3. If the 1st integer is greater than or equal to both the 2nd integer and the 3rd integer, print "Yes".

Input

Three lines containing an integer on each.


3
2
1

Output

The first line contains all the three inputted integers.

The second line contains a string which is the result.

3·2·1
Yes
1
Expert's answer
2021-11-06T18:59:29-0400
num1 = input("Please write first number: ")
num2 = input("Please write second number: ")
num3 = input("Please write third number: ")


all_num = num1, num2, num3
print(all_num)
if num1 >= num2 and num1 >= num3:
  print("Yes")
else:
  print("No")

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

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS