Answer the question
In order to leave comments, you need to log in
How to increase the allowed number of input characters?
/del /del /del /del /del /del /del /del /del /del /del /del
Answer the question
In order to leave comments, you need to log in
Perhaps this is not the final solution, but from our communication in the comments, I made the assumption that the string you have is stored in the form
"abvgdeziyklmnoprostufhtschshshchyyeyuya" then
the essence of the problem:
position =alphabet.find('я') # 31
newPosition = position + key # 36
alphabet [newPosition] # ааааа! нет такой буквы
position =s.find('я') # 31
newPosition = (position + key) % len(alphabet) # 4
alphabet [newPosition] # д
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question