Checkpoint 25.4.1.
Given the code below, what describes the values of x that will cause the code to print “condition true”?
if x > 0 and x < 10:
print ("condition true")
print ("All done")
- 1 to 10
- This would be true if the second expression was x <= 10.
- 0 to 9
- This would be true if the first logical expression was x >= 0.
- 1 to 9
- The "condition true" will only be printed when x is greater than 0 and less than 10 so this is the range from 1 to 9.