+ 3

New to Python - Small problem.

Hi All! I just started learning Python yesterday and below is a link to a small script for temperatures that I just started... https://code.sololearn.com/c67zSh4yc9IS/#py My problem is that is there a code/action that I can add to the script so that after I input temp = 50 the "print ("\nToday is a NICE day!")" won't appear? Thank you very much in advance for your help!

28th May 2018, 6:50 PM
Henry Lin
Henry Lin - avatar
1 Réponse
+ 4
You should probably use multiple elifs there: if x > 10: pass elif x < 10 and x > 7: pass elif x < 7 and x > 5: pass else: pass
28th May 2018, 7:01 PM
Pedro Demingos
Pedro Demingos - avatar