mirror of https://github.com/E-Almqvist/cipher
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
532 B
19 lines
532 B
eng_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"]
|
|
|
|
swe_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", "å", "ä", "ö"]
|
|
|
|
|
|
# Definitions
|
|
alphabet = dict()
|
|
|
|
alphabet["ENG"] = eng_alphabet
|
|
alphabet["SWE"] = swe_alphabet
|
|
|
|
# Functions
|
|
def listToString( l ):
|
|
returnStr = ""
|
|
|
|
for char in l:
|
|
returnStr += char
|
|
|
|
return returnStr
|
|
|