TypeError: ‘set’ object does not support indexing

Try square brackets:

a = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w",
 "x", "y", "z"]

i.e.: use an list instead of a set

Leave a Comment