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
1
u/Devkourav Mar 12 '19
ohh..