unsupported operand type(s) for %: 'list' and 'int'
Подскажите как исправить ошибку
x=2*27**7+3**10-9
a=[]
while x>0:
a=[a%3]+a
x=x//3
print(a.count(0))
Traceback (most recent call last):
File "C:/Users/A-Leo/OneDrive/Рабочий стол/s.py", line 4, in <module>
a=[a%3]+a
TypeError: unsupported operand type(s) for %: 'list' and 'int'
Источник: Stack Overflow на русском