a51e4dd69e
* Reformat codebase with black * Create black.yml and add black style badge to README.md
30 lines
354 B
Python
30 lines
354 B
Python
import random
|
|
|
|
|
|
def upperrep(text):
|
|
return text.upper()
|
|
|
|
|
|
upperrep.command = "upper"
|
|
|
|
|
|
def lowerrep(text):
|
|
return text.lower()
|
|
|
|
|
|
lowerrep.command = "lower"
|
|
|
|
|
|
def scramblerep(text):
|
|
return "".join(random.sample(text, len(text)))
|
|
|
|
|
|
scramblerep.command = "scramble"
|
|
|
|
|
|
def reverserep(text):
|
|
return text[::-1]
|
|
|
|
|
|
reverserep.command = "reverse"
|