Answer to Question #231255 in Python for bhuvana

Question #231255

Given a string, write a program to mirror the characters of the string in alphabetical order to create a secret message.


1
Expert's answer
2021-09-01T23:56:51-0400
letters = 'abcdefghijklmnopqrstuvwxyz'
table = {}
for i, j in zip(letters, letters[::-1]):
	table[ord(i)] = j
s = input('Input string: ').lower()
s = s.translate(table)
print(s)

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