There are 32 letters in the Polish alphabet: 9 vowels and 23 consonants. 
 
Your task is to change the letters with diacritics:

```
ą -> a,
ć -> c,
ę -> e,
ł -> l,
ń -> n,
ó -> o,
ś -> s,
ź -> z,
ż -> z
```
and print out the string without the use of the Polish letters.


For example:
```
"Jędrzej Błądziński"  -->  "Jedrzej Bladzinski"
```

Source: codewars | Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code: def correct_polish_letters(st):
	

Solutions:
def correct_polish_letters(s):
	return s.translate(str.maketrans('ąćęłńóśźż', 'acelnoszz'))


def correct_polish_letters(st):
	l = 'ąćęłńóśźż'
	lt = 'acelnoszz'
	for i in range(len(l)):
		st = st.replace(l[i], lt[i])
	return st


def correct_polish_letters(st):
	d = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join((d[c] if c in d else c for c in st))


correct_polish_letters = lambda st: st.translate(str.maketrans('ąćęłńóśźż', 'acelnoszz'))


def correct_polish_letters(st):
	rules = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join(map(lambda c: rules[c] if c in rules else c, st))


def correct_polish_letters(stg):
	return stg.translate(str.maketrans('ąćęłńóśźż', 'acelnoszz'))


def correct_polish_letters(st):
	return st.translate(st.maketrans('ąćęłńóśźż', 'acelnoszz'))


def correct_polish_letters(st):
	alphabet = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	result = ''
	for i in st:
		if i in alphabet:
			result += alphabet[i]
		else:
			result += i
	return result


intab = 'ąćęłńóśźż'
outtab = 'acelnoszz'
polish = str.maketrans(intab, outtab)

def correct_polish_letters(st):
	return st.translate(polish)


def correct_polish_letters(st):
	new_str = ''
	for i in range(0, len(st)):
		if st[i] == 'ą':
			new_str += 'a'
		elif st[i] == 'ę':
			new_str += 'e'
		elif st[i] == 'ć':
			new_str += 'c'
		elif st[i] == 'ł':
			new_str += 'l'
		elif st[i] == 'ń':
			new_str += 'n'
		elif st[i] == 'ó':
			new_str += 'o'
		elif st[i] == 'ś':
			new_str += 's'
		elif st[i] == 'ź':
			new_str += 'z'
		elif st[i] == 'ż':
			new_str += 'z'
		else:
			new_str += st[i]
	return new_str


def correct_polish_letters(s):
	pol_to_eng = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join((pol_to_eng.get(c) or c for c in s))


import re

def correct_polish_letters(s):
	pol_to_eng = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return re.sub('[ąćęłńóśźż]', lambda matchobj: pol_to_eng[matchobj.group()], s)


def correct_polish_letters(str_: str) -> str:
	return str_.translate(str.maketrans({'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}))


import unicodedata

def correct_polish_letters(st):
	mapper = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join([mapper[c] if c in mapper else c for c in st])


correct_polish_letters = lambda s: ''.join(({'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}.get(c, c) for c in s))


def correct_polish_letters(st):
	letters = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	result = ''
	for s in st:
		if s in letters:
			result = result + letters.get(s)
		else:
			result = result + s
	return result


correct_polish_letters = lambda s: s.translate(str.maketrans('ąćęłńóśźż', 'acelnoszz'))


def correct_polish_letters(st):
	replace = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join((replace.get(letter, letter) for letter in st))


def correct_polish_letters(st):
	if 'ą' in st:
		st = st.replace('ą', 'a')
	if 'ć' in st:
		st = st.replace('ć', 'c')
	if 'ę' in st:
		st = st.replace('ę', 'e')
	if 'ł' in st:
		st = st.replace('ł', 'l')
	if 'ń' in st:
		st = st.replace('ń', 'n')
	if 'ó' in st:
		st = st.replace('ó', 'o')
	if 'ś' in st:
		st = st.replace('ś', 's')
	if 'ź' in st:
		st = st.replace('ź', 'z')
	if 'ż' in st:
		st = st.replace('ż', 'z')
	return st


dic = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}

def correct_polish_letters(st):
	for (key, val) in list(dic.items()):
		if key in st:
			st = st.replace(key, val)
	return st


db = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}

def correct_polish_letters(st):
	return ''.join((db.get(i, i) for i in st))


def correct_polish_letters(st):
	map = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	for key in map.keys():
		st = st.replace(key, map[key])
	return st


def correct_polish_letters(st):
	dict = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	output = ''
	for x in st:
		if x in dict:
			output += dict[x]
		else:
			output += x
	return output


def correct_polish_letters(st):
	polish = ['ą', 'ć', 'ę', 'ł', 'ń', 'ó', 'ś', 'ź', 'ż']
	changeTo = ['a', 'c', 'e', 'l', 'n', 'o', 's', 'z', 'z']
	converted = []
	for letter in st:
		if letter in polish:
			i = polish.index(letter)
			converted.append(changeTo[i])
		else:
			converted.append(letter)
	return ''.join(converted)


def correct_polish_letters(st):
	trans = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join((trans.get(s, s) for s in st))


def correct_polish_letters(st):
	st2 = ''
	arr = []
	for i in st:
		arr.append(i)
	letters = [['ą', 'ć', 'ę', 'ł', 'ń', 'ó', 'ś', 'ź', 'ż'], ['a', 'c', 'e', 'l', 'n', 'o', 's', 'z', 'z']]
	for i in range(len(arr)):
		for j in range(len(letters[0])):
			if arr[i] == letters[0][j]:
				arr[i] = letters[1][j]
	for i in arr:
		st2 += i
	return st2


def correct_polish_letters(st):
	letters_dict = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	eng_string = ''
	for letter in st:
		if letter in letters_dict.keys():
			eng_string += letters_dict[letter]
		else:
			eng_string += letter
	return eng_string


def correct_polish_letters(st):
	change = str.maketrans('ąćęłńóśźżz', 'acelnoszzz')
	return st.translate(change)


def correct_polish_letters(st):
	let = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	new = ''
	for i in st:
		if i in let:
			new += let[i]
		else:
			new += i
	return new


def correct_polish_letters(text):
	x = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	for key in list(x.keys()):
		text = text.replace(key, str(x[key]))
	return text


def correct_polish_letters(st):
	polish = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 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': 'r', 'Ỿ': 'Y'}

def correct_polish_letters(st):
	if not isinstance(st, str):
		st = str(st)
	return ''.join((NON_NFKD_MAP[c] if c in NON_NFKD_MAP else c for part in unicodedata.normalize('NFKD', st) for c in part if unicodedata.category(part) != 'Mn'))


def correct_polish_letters(st):
	polish = 'ąćęłńóśźż'
	english = 'acelnoszz'
	for i in range(9):
		st = st.replace(polish[i], english[i])
	return st


def correct_polish_letters(st):
	(polish, latin) = ('ąćęłńóśźż', 'acelnoszz')
	for i in polish:
		st = st.replace(i, latin[polish.find(i)])
	return st


def correct_polish_letters(st):
	PolishDict = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	newStr = ''
	for i in range(len(st)):
		if st[i] in PolishDict:
			newStr += PolishDict[st[i]]
		else:
			newStr += st[i]
	return newStr


def correct_polish_letters(st):
	dict = {'ą': 'a', 'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	str = ''
	for letter in st:
		if letter in dict:
			str += dict[letter]
		else:
			str += letter
	return str


def correct_polish_letters(st):
	polish_alphabet = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join([polish_alphabet.get(i) if i in polish_alphabet else i for i in st])


def correct_polish_letters(st):
	polish = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	new_string = ''
	for i in st:
		if i in polish:
			new_string += polish[i]
		else:
			new_string += i
	return new_string


def correct_polish_letters(st):
	new_string = ''
	eng = 'acelnoszz'
	pol = 'ąćęłńóśźż'
	for i in range(len(st)):
		if st[i] in pol:
			new_string += eng[pol.index(st[i])]
		else:
			new_string += st[i]
	return new_string


def correct_polish_letters(st):
	stt = st.replace('ą', 'a').replace('ć', 'c').replace('ę', 'e').replace('ł', 'l').replace('ń', 'n').replace('ó', 'o').replace('ś', 's').replace('ź', 'z').replace('ż', 'z')
	return stt


def correct_polish_letters(st):
	diacritic = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join([char.replace(char, diacritic[char]) if char in diacritic.keys() else char for char in st])


def correct_polish_letters(st):
	for (p, e) in {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}.items():
		st = st.replace(p, e)
	return st


def correct_polish_letters(st):
	check = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	str = ''
	for i in range(len(st)):
		if st[i] in check.keys():
			str += check.get(st[i])
		else:
			str += st[i]
	return str


def correct_polish_letters(st):
	d = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	for k in d:
		st = st.replace(k, d[k])
	return st


def correct_polish_letters(st):
	alp = 'ąćęłńóśźż'
	alpc = 'acelnoszz'
	return st.translate(st.maketrans(alp, alpc))


def correct_polish_letters(st):
	Polish_alphabet = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	result = ''
	for el in st:
		result += Polish_alphabet.get(el, el)
	return result


trans = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}

def correct_polish_letters(st):
	empty = []
	for char in st:
		if char not in trans:
			empty.append(char)
		elif char in trans:
			empty.append(trans[char])
	return ''.join(empty)


def correct_polish_letters(st):
	answer = ''
	d = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	lst = ['ą', 'ć', 'ę', 'ł', 'ń', 'ó', 'ś', 'ź', 'ż']
	for c in st:
		if c in lst:
			answer += d.get(c)
		else:
			answer += c
	return answer


def correct_polish_letters(st):
	dict = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	st2 = ''
	for ch in st:
		if ch in dict:
			st2 = st2 + dict[ch]
		else:
			st2 = st2 + ch
	return st2


def correct_polish_letters(st):
	result = ''
	for letter in st:
		if letter == 'ą':
			result += 'a'
		elif letter == 'ć':
			result += 'c'
		elif letter == 'ę':
			result += 'e'
		elif letter == 'ł':
			result += 'l'
		elif letter == 'ń':
			result += 'n'
		elif letter == 'ó':
			result += 'o'
		elif letter == 'ś':
			result += 's'
		elif letter == 'ź':
			result += 'z'
		elif letter == 'ż':
			result += 'z'
		else:
			result += letter
	return result
	pass


def correct_polish_letters(st):
	alphabet = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	new_str = ''
	for c in list(st):
		if c in alphabet:
			new_str += alphabet[c]
		else:
			new_str += c
	return new_str


X = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}

def correct_polish_letters(st):
	for x in X:
		st = st.replace(x, X[x])
	return st


polish_letter = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}

def correct_polish_letters(st):
	new_list = []
	for letter in st:
		if letter in polish_letter:
			letter = polish_letter[letter]
		new_list.append(letter)
	return ''.join(new_list)


def correct_polish_letters(st):
	(s, p, n) = ('', ['ą', 'ć', 'ę', 'ł', 'ń', 'ó', 'ś', 'ź', 'ż'], ['a', 'c', 'e', 'l', 'n', 'o', 's', 'z', 'z'])
	for i in list(st):
		if i in p:
			s += n[p.index(i)]
		else:
			s += i
	return s


ALPHABET = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}

def correct_polish_letters(st):
	result = ''
	for char in st:
		if char in ALPHABET:
			result += ALPHABET[char]
		else:
			result += char
	return result


def correct_polish_letters(st):
	new = ''
	for x in st:
		if x == 'ą':
			new += 'a'
		elif x == 'ć':
			new += 'c'
		elif x == 'ę':
			new += 'e'
		elif x == 'ł':
			new += 'l'
		elif x == 'ń':
			new += 'n'
		elif x == 'ó':
			new += 'o'
		elif x == 'ś':
			new += 's'
		elif x == 'ź':
			new += 'z'
		elif x == 'ż':
			new += 'z'
		else:
			new += x
	return new


import re
polist_letters = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}

def correct_polish_letters(st):
	my_st = st
	for l in polist_letters:
		my_st = re.sub(l, polist_letters.get(l), my_st)
	return my_st


def correct_polish_letters(st):
	d = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join(map(lambda x: x.replace(x, d.get(x, x)), st))


def correct_polish_letters(st):
	polish_letters = 'ąćęłńóśźż'
	english_letters = 'acelnoszz'
	table = st.maketrans(polish_letters, english_letters)
	return st.translate(table)


def correct_polish_letters(string):
	dic = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	return ''.join((dic.get(l, l) for l in string))


def correct_polish_letters(st):
	res = ''
	letters = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	for elem in st:
		for letter in elem:
			if letter in letters:
				res += letters[letter]
			else:
				res += elem
	return res


def correct_polish_letters(st):
	d = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	output = ''
	for i in st:
		output += d.get(i, i)
	return output


def correct_polish_letters(st):
	list = []
	dict = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	for i in st:
		if i in dict.keys():
			list.append(dict[i])
		elif st.isspace():
			list.append(' ')
		else:
			list.append(i)
	return ''.join(list)


def correct_polish_letters(st):
	dict = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	word = ''
	for i in st:
		if i.isupper() == True:
			word += i
		else:
			word += dict.get(i, i)
	return word


pol = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}

def correct_polish_letters(st):
	for char in st:
		if char in pol.keys():
			st = st.replace(char, pol.get(char))
	return st


def correct_polish_letters(st):
	dic = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	res = ''.join((dic[i] if i in dic else i for i in st))
	return res


def correct_polish_letters(st):
	translationTable = str.maketrans('ąćęłńóśźż', 'acelnoszz')
	return st.translate(translationTable)


def correct_polish_letters(st):
	polish = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	res = ''
	for i in st:
		if i in polish:
			q = st.index(i)
			res += st[q].replace(st[q], polish.get(st[q]))
		else:
			res += i
	return res


def correct_polish_letters(st):
	char = ['a', 'c', 'e', 'l', 'n', 'o', 's', 'z', 'z']
	mod = ['ą', 'ć', 'ę', 'ł', 'ń', 'ó', 'ś', 'ź', 'ż']
	for x in st:
		if x in mod:
			st = st.replace(x, char[mod.index(x)])
	return st


def correct_polish_letters(st):
	polish_letters = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	ret = ''
	for i in st:
		if i in polish_letters.keys():
			ret += polish_letters[i]
		else:
			ret += i
	return ret


import ast

def correct_polish_letters(st):
	letters = 'ą -> a,\nć -> c,\nę -> e,\nł -> l,\nń -> n,\nó -> o,\nś -> s,\nź -> z,\nż -> z'
	letters = "{'" + letters.replace(' -> ', "':'").replace(',', "',").replace('\n', "'") + "'}"
	letters = ast.literal_eval(letters)
	st2 = ''
	for i in range(len(st)):
		if st[i] not in letters:
			st2 += st[i]
		else:
			st2 += letters.get(st[i])
	return st2


def correct_polish_letters(st):
	dic = {'ą': 'a', 'ć': 'c', 'ę': 'e', 'ł': 'l', 'ń': 'n', 'ó': 'o', 'ś': 's', 'ź': 'z', 'ż': 'z'}
	for i in dic:
		st = st.replace(i, dic[i])
	return st