-
-
Save SeppeSoete/c673f188a3bd803e06e6a5bf3921389d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import random | |
import sys | |
import pyperclip | |
words = sys.argv[1:] | |
result = "" | |
for word in words: | |
for letter in word: | |
choice = random.randint(0,1) | |
if choice == 1: | |
result += letter.lower() | |
else: | |
result += letter.upper() | |
result += " " | |
pyperclip.copy(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment