mark = int(raw_input("Mark:"))
if mark < 50:
print "Grade = F"
if mark >= 50 < 64:
print "Grade = P"
if mark >= 65 < 74:
print "Grade = CR"
if mark >= 75 < 84:
print "Grade = D"
if mark >= 85 < 100:
print "Grade = GOD DAMN BOI!!!!"
This doesn't print out right
say this happens
Mark: 66
this will print out as
Grade = P
Grade = CR
Now I have learnt that python is something where you throw every bit of logic you know away...
Anyways why is this printing wrong and how can it be fixed

New Topic/Question
Reply



MultiQuote






|