Как объеденить строки print?
print(*[((alph.index(i)+1)**5 % 91) for i in a])
print(*[(alph.index(i)+1) for i in a])
способ 1:
print(*[((alph.index(i)+1)**5 % 91) for i in a], end='')
print(*[(alph.index(i)+1) for i in a])
способ 2:
print(*[((alph.index(i)+1)**5 % 91) for i in a], *[(alph.index(i)+1) for i in a])
способ 3:
print(*([((alph.index(i)+1)**5 % 91) for i in a] + [(alph.index(i)+1) for i in a]))
Попробуйте так:
print(*[ [((alph.index(i)+1)**5 % 91), (alph.index(i)+1)] for i in a ])
Думаю, как-то так должно сработать:
ind = [alph.index(i)+1 for i in a]
print(*(x**5 % 91 for x in ind), *ind)
print(*[((alph.index(i)+1)**5 % 91) for i in a] end="") print(*[(alph.index(i)+1) for i in a])