Q. Mid Air Airlines will only allow carry-on bags that are no more than 22 inches long, 14 inches wide, and 9 inches deep. Assuming that variables named length, width, and depth have already been assigned values, write an expression combining the three that evaluates to True if bag fits within those limits, and False otherwise.

 

Answer =

 

 

l = int(input("Enter length :-"))
w = int(input("Enter width :-"))
d = int(input("Enter Depth :-"))
print( (l <= 22) and ( w<= 14 ) and (d <= 9)  ) 



Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post