Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def weirdprint(mess,slp):
- n=0
- cons=78
- nmode=1
- while True:
- if n<0:
- nmode=1
- n+=1
- if nmode:
- n+=1
- else:
- n-=1
- if n>cons-len(mess):
- nmode=0
- n-=1
- print " "*n+mess+" "*(cons-n-len(mess))+"\r",
- time.sleep(slp)
- def leetize(string,leetz=("etiolsazbg","3710154289"),shorts={
- "you":"U","You":"U","YOU":"U",
- "too":"2","Too":"2","TOO":"2",
- "to":"2","To":"2","TO":"2",
- "are":"R","Are":"R","ARE":"R",
- "awesome":"awsum","Awesome":"Awsum","AWESOME":"AWSUM",
- "for":"4","For":"4","FOR":"4",
- "at":"@","At":"@","AT":"@",
- "laugh":"lol","Laugh":"lol","LAUGH":"LOL",
- }):
- res=""
- for i in shorts:
- string=string.replace(i,shorts[i])
- for i in string:
- if i.lower() in leetz[0]:
- res+=leetz[1][leetz[0].index(i.lower())]
- else:res+=i
- return res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement