Sep-26-2018, 03:58 PM
I am brand new to python and seem to to stuck on something that seems simple. If I run the code below it works as expected.
money = -10 print money if money == 0: print 'You got no money' elif money < 0: print 'Sorry about your luck' else: print 'Yeah you got money'However if I add raw_input it ignores all conditions and prints else.
money = raw_input('How much money do you have? ') print money if money == 0: print 'You got no money' elif money < 0: print 'Sorry about your luck' else: print 'Yeah you got money'Any help would be appreciated.