the-honk/python/pythonchallenge.com/1 - Map.py

9 lines
438 B
Python
Raw Permalink Normal View History

2024-10-09 17:02:27 +00:00
translation = str.maketrans('abcdefghijklmnopqrstuvwxyz', 'cdefghijklmnopqrstuvwxyzab')
task = 'g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr\'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj.'
taskRes = task.translate(translation)
print(taskRes)
nextTask = 'map'
nextTaskRes = nextTask.translate(translation)
print(nextTaskRes)