Write a Boolean expression that evaluates true if weight is greater than 50 or
height is greater than 160.
The boolean expression as follows:
Program:
# accept the weight value from the user
weight = float(input("Enter weight: "))
# accept the height value from the user
height = float(input("Enter height: "))
# Boolean expression that evaluates true
# if weight is greater than 50 or
# height is greater than 160.
print(weight > 50 or height > 160)
:
Output:
Enter weight: 9
Enter height: 180
True