Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 548 Bytes

polish_alphabet.md

File metadata and controls

33 lines (26 loc) · 548 Bytes

Description

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"

My Solution

def correct_polish_letters(s)
  s.tr('ąćęłńóśźż', 'acelnoszz')
end