Python: input, raw_input, and inadvertently treating integers as strings
young = age < 45 slim = bmi < 22.0 if young and slim: risk = "low" elif young and not slim: risk = "medium" elif not young and slim: risk = "medium" elif not young and not slim: risk = "high" Of course, you can't really run this. If you try, you get this: |
|
This topic does not have any threads posted yet!
You cannot post until you login.