scripts-and-tools/randomcase
2022-01-05 22:13:57 +03:00

14 lines
286 B
Python
Executable file

#!/bin/python3
from sys import argv
from random import randint
def randomcase(text):
result = ""
for letter in text:
result += letter.lower() if randint(0,1) else letter.upper()
return result
input_text = " ".join(argv[1:len(argv)])
print(randomcase(input_text))