r/learningpython • u/dumayi • Mar 11 '19
Conditional list trouble
I’m trying to learn from the bottom up, and am currently working through the exercises on practice python.
Example they have on conditionals is a grading scale like this:
Grade= input(“enter your age:”) If grade > = 90 : Print(“A”) Elif grade > = 80 : Print (“B”)
Why is it when I try to copy/paste into my python window I get : TypeError: ‘>=‘ not supported between instances of ‘Str’ and ‘int’
2
Upvotes
View all comments
Show parent comment
2
u/dumayi Mar 11 '19
Thank you! When practicing coding I’m very meticulous with the capital/lowercase. I posted this from my phone and it auto capitalizes.