fork download
  1. input_text = "HelloWorld"
  2. output_text = ""
  3.  
  4. from_map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  5. to_map = "NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm"
  6.  
  7. for character in input_text:
  8.  
  9. search_index = 0
  10.  
  11. while character != from_map[search_index]:
  12. search_index = search_index + 1
  13.  
  14. output_text = output_text + to_map[search_index]
  15.  
  16. print(output_text)
  17.  
Success #stdin #stdout 0.07s 14040KB
stdin
Standard input is empty
stdout
UryybJbeyq