boob00 Posted November 23, 2013 Share Posted November 23, 2013 Hello all, I am new to python and am having trouble with an if elif statement. My code is as follows: num1 = raw_input('Number: '); if num1 > 140: print 'high' elif num1 < 80: print 'low' When i run this, and i put in say 150 it tells me that the number is high as expected, but when i run it and put in say 60, it still days high. Any help is grately appreciated. -Boob00 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.