Advertisement
Guest User

rot13(phrase)

a guest
Mar 26th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def rot13(phrase):
  2.     phr=""
  3.     counter = 0
  4.     while counter < len(phrase):
  5.         if islettter(phrase[counter]) == True:
  6.             phr+=rot13Chr(phrase[counter])
  7.             counter += 1
  8.         else:
  9.             phr += phrase[counter]
  10.             counter += 1
  11.     return phr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement