print("=~=~=~=~=~=~=~=~=~=~=")
print("")
height = float(input("Input the height (cm): "))
width = float(input("Input the width (cm): "))
length = float(input("Input the length (cm): "))
print("")
print("=~=~=~=~=~=~=~=~=~=~=")
if height or width or length > 80:
print("Rejected, measurements exceed 80cm.")
elif height or width or length < 80:
print("Works")
else:
print("Error")
It prints the rejected message when I enter numbers lower than 80 and larger than 80. Anyone see what im missing?
Aucun commentaire:
Enregistrer un commentaire