#!/usr/bin/python import sys CIPHER = "OMQEMDUEQMEK" LETTERS = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") CIPHER = "" shift = 1 while i < len(LETTERS): for c in CIPHER: if c in LETTERS: CIPHER += LETTERS[(LETTERS.index(c)+shift)%(len(LETTERS))] print("Shift used: " + str(shift)) print("Ciphertext: " + CIPHER) print("CIPHER: " + CIPHER) shift = shift + 1 CIPHER = ""