I have four variables [t1, t2, t3, t4], and each of them has been defined as a string before.
t1 = 'A vida vai ficando cada vez mais dura perto do topo.'
t2 = 'A moralidade é a melhor de todas as regras para orientar a humanidade.'
t3 = 'Aquilo que se faz por amor está sempre além do bem e do mal.'
t4 = 'Torna-te aquilo que és.'
If in the code, I want to call each of these variables at once, I thought of doing this:
for i in range(1,5):
print(ti)
Thus, i would be replaced by the numbers 1 to 4 and then call t1, t2, t3, t4 subsequently. Obviously, this method does not work. In fact it is possible to create a list with the texts and then do:
lista = [t1, t2, t3, t4]
for i in range(1,5):
print(lista[i])
But it becomes antipractical to create a list when the number of variables is too high. My question is: is there any way to call multiple pre-defined variables at once, how would it work in the above 'for' repetition above?