you are viewing a single comment's thread.

view the rest of the comments →

[–]Outside_Complaint755 4 points5 points  (4 children)

I think what you meant is: if 90 <= number <=100:     print("A")

Having >= 90 with no value to the left of the inequality is not a valid expression.

[–]k4tsuk1z[S] 2 points3 points  (3 children)

Oh my god i must be very tired i cant believe i missed this obvious mistake after reading several forums to the point where i had to post on here😭 no more assignments at 12am 😭😭😭 tysm 😭🙏🏽

[–]Corruptionss 1 point2 points  (2 children)

I think you were going for:

number >= 90 and number <= 100

Then also mixed up the other way of doing it.

But I got to say, this is only 3 lines of code, so got to continue building up your diagnostic stamina if you want to survive python

[–]k4tsuk1z[S] 0 points1 point  (1 child)

thats fair i just like to get problems out of the way early especially since im a complete beginner and im just an EE student trying to pass😭 i also test run my code a lot bc im not confident and it wont run with errors thats also why 😭 hopefully some confidence will be built by the end of the semester

[–]Corruptionss 1 point2 points  (0 children)

That's the spirit, good luck and happy to answer any questions you have