What I wanted to do in this program was, I tried to make some inputs and check them whether they are even or odd, and print them. But, as I run this, it is showing the following error message- (and see the image below)
for i in inp: TypeError: 'int' object is not iterable
Source code:
def number():
n=int(input('How many numbers are there in your input: '))
for inp in range(n):
inp=eval(input('input= '))
for i in inp:
if i % 2 == 0:
print(i, ' is even')
continue
else:
print(i, ' is odd')
continue
number()