I want to know whether a number is a multiple of 2 and/or 5
But Python doesn't let me put lots of things after the '=='
Here's my code:
I also tried:
But it doesn't make sense
I wish you could help me
Thank you
PS: I know that the program don't make any sense but that's not the real purpose, it's just to simplify.
But Python doesn't let me put lots of things after the '=='
Here's my code:
Code:
def asdf(n): n=str(m) if n==2: a=True elif n==5: a=True elif m[-1:]==2 or 4 or 6 or 8 or 0 or 5: a=True
Code:
elif m[-1:]==2, 4, 6, 8, 0, 5:
I wish you could help me
Thank you
PS: I know that the program don't make any sense but that's not the real purpose, it's just to simplify.
Comment