If you convert the number in int then you should store in some variable.
number = int(number)
then do
Oddoreven= number%2
And use = assignment sign not comparison == sign
Because if u don’t store it in another variable it will not be casted to int and then it will be treated as string only that’s why you are getting typeerror
1
solved I keep getting a TypeError [closed]