while True: try: keys,encrypt = input().upper(),input() a ,table= "",{} alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in keys: if i not in a: a += i newStr = a for i in alpha: if i not in newStr: ...