2011-06-07 11:48:35 -04:00
|
|
|
import random
|
|
|
|
|
2022-10-07 16:51:40 -04:00
|
|
|
|
2011-06-07 11:48:35 -04:00
|
|
|
def upperrep(text):
|
|
|
|
return text.upper()
|
2022-10-07 16:51:40 -04:00
|
|
|
|
|
|
|
|
2011-06-07 11:48:35 -04:00
|
|
|
upperrep.command = "upper"
|
|
|
|
|
2022-10-07 16:51:40 -04:00
|
|
|
|
2011-06-07 11:48:35 -04:00
|
|
|
def lowerrep(text):
|
|
|
|
return text.lower()
|
2022-10-07 16:51:40 -04:00
|
|
|
|
|
|
|
|
2011-06-07 11:48:35 -04:00
|
|
|
lowerrep.command = "lower"
|
|
|
|
|
2022-10-07 16:51:40 -04:00
|
|
|
|
2011-06-07 11:48:35 -04:00
|
|
|
def scramblerep(text):
|
|
|
|
return "".join(random.sample(text, len(text)))
|
2022-10-07 16:51:40 -04:00
|
|
|
|
|
|
|
|
2011-06-07 11:48:35 -04:00
|
|
|
scramblerep.command = "scramble"
|
|
|
|
|
2022-10-07 16:51:40 -04:00
|
|
|
|
2011-06-07 11:48:35 -04:00
|
|
|
def reverserep(text):
|
|
|
|
return text[::-1]
|
2022-10-07 16:51:40 -04:00
|
|
|
|
|
|
|
|
2011-06-07 11:48:35 -04:00
|
|
|
reverserep.command = "reverse"
|