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

9 lines
438 B
Python
Raw Normal View History

2021-06-06 20:34:56 +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)