import random plaintext = ["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"] ciphertext = [] for i in range (0, 26): letter = plaintext[random.randint(0, len(plaintext)-1)] ciphertext.append(letter) plaintext.remove(letter) print(ciphertext)