Advertisement
Guest User

Untitled

a guest
May 27th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. import time
  2. Alfabeto=[" ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
  3. aurelio = 1
  4. crypto=""
  5. def countdown(timer):
  6. while timer:
  7. time.sleep(1)
  8. timer -= 1
  9. countdown(10)
  10.  
  11. while aurelio==aurelio:
  12. mess = input ("Inserire messaggio: ")
  13. y = 0
  14. for i in mess :
  15. for posizione in range(0,len(Alfabeto)-1):
  16. if i == Alfabeto[posizione] and i != " ":
  17. x=posizione
  18. k=x+1
  19. crypto = crypto + Alfabeto[k]
  20. break
  21. if i == " ":
  22. crypto=crypto + i
  23. print(crypto)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement