[L1] Trouble with it

3,224 views
Skip to first unread message

Евгений Зубань

unread,
Jan 13, 2016, 5:38:37 AM1/13/16
to Python Challenge
Hi, I know that I have to use maketrans, I have next sequence: "koeabfhlnstwx","mqgcdijpruvyz", but it also unreadable text

Yalong Zhang

unread,
Mar 28, 2017, 1:57:56 AM3/28/17
to Python Challenge
from_str = 'abcdefghijklmnopqrstuvwxyz'
to_str = 'cdefghijklmnopqrstuvwxyzab'
transform = str.maketrans(from_str,to_str)
result = your_str.translate(transform)
print(result)
may be your translation is not right.

在 2016年1月13日星期三 UTC+8下午6:38:37,Yevgenii Zuban写道:
Reply all
Reply to author
Forward
0 new messages