Skip to content
Advertisement

Tag: letter

Python change lowercase to uppercase

I need help with python program. I don’t know how to make python change at least 1 lowercase letter to uppercase. Answer You want a password with at least one uppercase letter but it shouldn’t be every character. First get length random lowercase letters. Then get some random indexes (min. 1, max. length-1) that should be transposed to uppercase. You

Python: Generate random letter then Keystroke said letter

(I am using Python under Mac OS) Hey Guys, i am looking for a way to random generate a letter (a-z) and then keystroke it. The way I usually do keystrokes is: cmd = “”” osascript -e ‘tell application ‘System Events’ to keystroke “insert_letter_here”‘ “”” os.system(cmd) This won’t accept random.letter since it would keystroke the exact spelling of random.letter. Does

Advertisement