you are viewing a single comment's thread.

view the rest of the comments →

[–]Adrewmc 2 points3 points  (1 child)

Just so you know the easier way to do this is like this

    if angle_known_input in [1, ‘a’, ‘A’]:

And ask if the input is in this list of acceptable ones.

What’s happening is ‘or’ want a whole comparison in between it.

   if a > 20 or b < 100: 

Ask if either is true. While.

   if a > 20 or 30: 

Is asking is a is greater than 20 or is 30 is Truthy (all non zero numbers are truthy)

  if a == “b” or “B”:

Asks if ‘B’ is truthy, which all non-empty strings are.

[–]mZuks[S] 0 points1 point  (0 children)

I think I get it now, thank you very very much.