Python3
Крч. Есть у меня массив:
st = [('hello:text:'), ('world:text:'), ('string:text:') и т.п
]
Мне надо вывести их убрав :text:
i = 0
while i > len(st):
print(st[i].replace(":text:", "")
i+=1
Но, выдает ошибку:
AttributeError: 'tuple' object has no attribute 'replace'