цикл в Python, я не могу сейчас, почему возникли проблемы
number=(12,34,454,87,98,24,908)
for char in number:
if number%2==0:
print('even')
else:
print('odd')
"d:\pythonProject2\bhkghjg.py", line 4, in
if number%2==0:
~~~~~~^~
TypeError: unsupported operand type(s) for %: 'tuple' and 'int'
PS C:\Users\TTM>
Подробнее здесь: https://stackoverflow.com/questions/790 ... -this-part