Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import time, random
alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
stuff="HJDVVHPWHUFHV"
newMessage=""
cr=int(0)
for character in stuff:
  if cr>26:
    break
  else:
    if character in alphabet:
      value= alphabet.find(character)
      newCharacter= alphabet[(value+cr)]
  #print ("Your new character is", newCharacter)
      newMessage += newCharacter
      cr+=1
    else:
      newMessage+=character
      cr+=1
print (newMessage)