Python - How To Convert Letters to Numbers

preview_player
Показать описание
#Python #Shorts
Computers only understand numbers. They couldn't care less about letters. That's why in order for computers to understand letters, we have tables like ASCII that map letters to numbers.
Sometimes, especially during solving some algorithmic challenges, it helps to know how to convert letters to numbers.
Python makes it easy for us and we can do this by calling "ord" function on a letter.

-------------------------------------------------------------------------------------
Links:
Рекомендации по теме