Jul-09-2018, 04:32 PM
input()
returns str
. You need to convert it to int
before comparing. Also your indentation is bit off.S = int(input ("S?")) G = int(input("G?")) if S > G: print ("a") elif G > S: print ("b") elif S == G: print ("c")
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs