from itertools import permutations
perms = permutations("hello",5)
This gives me a weird <> thing I don't understand. It seems to work to go
for i in perms:
print(i)
But I don't want to run through all permutations as there are very many of them. So I want to be able to do something like
perms[index]
to give ("h","e","l","l","o"). But this breaks because it's "not subscriptable". So how do I get just ("h","e","l","l","o") from this? Thank you!