Skip to content

Commit

Permalink
Secret Message - Python Implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamstan13y authored Dec 31, 2021
1 parent 6fb9040 commit c1f5665
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sololearn CodeCoach Challenges/Python/SecretMessage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
alphabet = "abcdefghijklmnopqrstuvwxyz"
ms = input().lower()
coded_ms = ''
for x in range(len(ms)) :
for z in range(len(alphabet)):
if alphabet[z] == ms[x]:
coded_ms += alphabet[-z-1]
if ms[x] == ' ':
coded_ms += ' '
print(coded_ms)

0 comments on commit c1f5665

Please sign in to comment.