Jan-16-2017, 06:16 PM
Hey there, trying to run a basic Boolean program however I'm having trouble printing one of my options.
I want to print "True" for values equal to 0.1 or greater than 1.0 and "False" for anything in between.
The only option that won't print is the case where the value is greater than 1.0.
Here's the code:
I want to print "True" for values equal to 0.1 or greater than 1.0 and "False" for anything in between.
The only option that won't print is the case where the value is greater than 1.0.
Here's the code:
value = 1.5 if value == 0.1: print("True") elif value >0.1: if value <1.0: print("False") else: print("True")Thanks for the help!