Why does this say list index out of range? This may not be the best way of doing this but just wondering why this is happening! Thanks
key = 13
alphabet = ["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"]
replacement_set = ["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"]
count = -1
while count <= 25:
count += 1
if count < int(key):
index_value = int(count + int(key))
replacement_set[index_value] = alphabet[count]
print replacement_set
elif count >= int(key):
index_value = int(count - int(key))
replacement_set[index_value] = alphabet[count]
print replacement_set
else:
break
print replacement_set