+ 3
Pictography program in python
Hello 👋 I have a questions about something. I want to write a pictography program in python . It have steps : 1- program takes a default string text from us . 2- it will delete the vowel letters . 3- then we have just the consonantal letters . Now program will be appoint some defualt numbers from 0 to 26 for that letters . I don't know how can I do the thirt step . And the steps of decoding program is this . 1-Program gives the default numbers and give us the letters of it. 2-it will appoint random letters and when that word will have meaning . It will stop . 3- program gives us the string text . And I don't know how can I do the decoding program . Can anyone help me about write the above programs in python ? Tnx🌹
2 ответов
+ 2
Thank u . I want to make a pictography program with that steps and I don't know why 😂 maybe cause I love coding and make programs. Thank you for your answer🌹
+ 1
I don't really understand what you want to do and why.
But for third step you should use function ord(letter)
https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/methods/built-in/ord
It gives the unicode/ascii code, so use it like this: ord(letter) - ord('a') if you want 0-25.
Reverse function to ord is chr