Answer to Question #266215 in Python for Pavani

Question #266215

 you are given a string s . write a program to replace each letter of the string with the next letter that comes in the English alphabet.


1
Expert's answer
2021-11-15T07:38:55-0500
string = input("Enter the phrase: ") 


new_string = ''.join(chr(ord(char)+1) for char in string) 


print(new_string)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS