minus-squareMatth78@lemm.eetoPython@programming.dev•Why can't I use the '|' bitwise operator in this statement?linkfedilinkEnglisharrow-up6·edit-219 hours agoI don’t have the answer, but if you are looking to do something like that you could simply do : if coin in (25, 10, 5): Or use a list but I think using a tuple is better as your values are fixed. linkfedilink
I don’t have the answer, but if you are looking to do something like that you could simply do :
if coin in (25, 10, 5):
Or use a list but I think using a tuple is better as your values are fixed.