fork download
  1. def decode_message(encoded_message):
  2. # Shift each character by -5
  3. decoded_chars = [chr(ord(c) - 5) for c in encoded_message]
  4. return ''.join(decoded_chars)
  5.  
  6. # First hidden message
  7. encoded_message_1 = 'i thj wli tmr twqi orv tvwljtkewjwxiv mtwq mtvsrk!'
  8.  
  9. # Second hidden message
  10. encoded_message_2 = 'mvj uir gswi rvw mvwsizxv xi vgihtsh!'
  11.  
  12. # Decode both messages
  13. first_decoded_message = decode_message(encoded_message_1)
  14. second_decoded_message = decode_message(encoded_message_2)
  15.  
  16. print(first_decoded_message)
  17. print(second_decoded_message)
Success #stdin #stdout 0.01s 7072KB
stdin
Standard input is empty
stdout
docergdohmorldjmqoqrgeof`rersdqhorlhoqnmf
hqepdmbnrdmqrhqrndusqsdqbdconc