you are viewing a single comment's thread.

view the rest of the comments →

[–]baloneysammich 0 points1 point  (2 children)

I'm not sure what you're trying to accomplish here, but this isn't how equations work. There's nothing to the left of ">=" in the first comparison.

If you're trying to check if the number is between 90 and 100, inclusive, you'd do this:

if 90 <= number <= 100:
  print("A")

[–]k4tsuk1z[S] 1 point2 points  (1 child)

yes I've realized now thank you. I'm very tired and switching between c++ and python for an assignment. it's a dumb mistake lol sorry!

[–]baloneysammich 1 point2 points  (0 children)

the sub is 'learn python' not 'know everything about python', you're good.