write a python program to find the greatest 2 nos
Answers
Answered by
1
Answer:
MARK ME AS BRAINLIEST ANSWER
Explanation:
In this Python program, it finds the largest number among the two using Nested If. Within the Python Program to return the Largest of Two Numbers example, the first if condition checks whether a is equal to b. Inside the Else block, we are using another if statement to check whether a is greater than b or not.
Answered by
2
a, b = [int(n) for n in input("enter 2 nums: ").split()]
print(f"max: {a}") if a > b else print(f"max: {b}")
Similar questions
Hindi,
2 months ago
English,
2 months ago
Physics,
5 months ago
Chemistry,
5 months ago
India Languages,
10 months ago
Science,
10 months ago
India Languages,
10 months ago