Answer to Question #260594 in Python for bannu

Question #260594

You are given three numbers. Check if any of the numbers exist in the range from 10 to 20 (including 10 and 20).

input is

2

4

6

output should be

false


1
Expert's answer
2021-11-03T07:44:46-0400
N1=int(input("Enter first number: "))
N2=int(input("Enter second number: "))
N3=int(input("Enter third number: "))
if N1 in range(10,20):
    print(N1," is in the range of 10 and 20")
if N2 in range(10,20):
    print(N2," is in the range of 10 and 20")
if N3 in range(10,20):
    print(N3," is in the range of 10 and 20")
else:
    print("false")

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