Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Accent letters to normal alphabets?

akalit (530 points)
0 1 3
in Programming in Python by (530 points)
Hi!

What is the best way to convert "Accent Letters" to normal alphabets?

Thanks in advance.
241 views

1 Answer

S
Silktrader (2550 points)
2 6 16
by (2.6k points)

You have several alternatives, such as plain dictionaries substitutions, or the string.replace method. Given the context, I'd suggest you look into the translate method of strings, here's the official documentation.

Map each accented letter to its unaccented version.

akalit (530 points)
0 1 3
by (530 points)
Thanks a lot.