if i in alph:
mystr = mystr.replace(i, chr(ord(i) - 1))
I have a string and i want each letter of it replace with last letter in alphabet
Why this code doesnt work?
Please format the code you posted, by wrapping it in triple backticks. -> `
Обсуждают сегодня