I can't figure out what I'm doing wrong here. The shift works flawlessly excpet for it skips the first letter in the cipher code. What gives? It should translate to WELCOMETOCRYPTOGRAPHY but does ELCOME....
cipher = 'ZGXJHZOJXMTKOJBMVKCT'
letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
plain = ""
for x in cipher:
if x in letters:
pos = (letters.find(x) - 21) % 26
plain += letters[pos]
print ("Key #%s: %s") % (c, plain)