When I execute this code (if the number finishes in 2 returns true, else none)
I get the following Error:
I also tried
But's the same
Code:
def asdf(n): n=str(m) elif m[-1]==2: return True
I get the following Error:
Code:
Traceback (most recent call last):
File "C:\***\***.py", line 3, in asdf
elif int(m[-1])==2:
TypeError: 'file' object is not subscriptable
I also tried
Code:
elif int(m[-1])==2:
Comment