reverendsteveii

stolenTwistUp.py

Jun 29th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #stolenTwistUp.py
  2. from random import randint
  3.  
  4. def twistUp(s):
  5.     new_s = ''
  6.     for x in s:
  7.         new_s += x
  8.         if x.isalpha():
  9.             new_s += chr(0x0300 + randint(0, 0x6F))
  10.     return new_s
  11.    
  12. print twistUp("THEQUICKBROWNFOXJUMPEDOVERTHELAZYDOG")
  13. print twistUp("thequickbrownfoxjumpedoverthelazydog")
Add Comment
Please, Sign In to add comment