+ 4
All conditions are getting tested no matter what the value is, whereas it should stop testing as soon as one condition is found to be true. Suppose var = 15. It will print both, "High Five" and "Ra"*var, because both conditions are true: 15>10 as well as 15>1. Solution: use elif
14th Sep 2024, 10:46 AM
Brian
Brian - avatar