Skip to content

Instantly share code, notes, and snippets.

@SeppeSoete
Created May 29, 2020 09:31
Show Gist options
  • Save SeppeSoete/c673f188a3bd803e06e6a5bf3921389d to your computer and use it in GitHub Desktop.
Save SeppeSoete/c673f188a3bd803e06e6a5bf3921389d to your computer and use it in GitHub Desktop.
#!/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