Question: About Python A word in a txt file, I want to convert each word to ASCII number and then add 1 to 25, then convert

About Python

A word in a txt file, I want to convert each word to ASCII number and then add 1 to 25, then convert back to English letters, then the user enters a string of English at this time, it will detect whether the user input and the previous increase The match is matched and the value is output. For example: the user entered 'nmd', all the words in the txt file were converted to ASCII number format, and then the number represented by each letter was added from 1-25. For example, if there is a word in txt that is jiz, the word is added from 1-25. When the ASCII number of jiz is added 4, the three letters converted back are nmd. As for how to convert, I used ord() and chr() to write the equation. Mainly the previous steps, I don't know how to achieve

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!