Skip to content
Advertisement

Tag: lowercase

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

Uncrypting a very simple code in python

So this is the brief: i need to input something like: and return: As you can see to decode this i need to start by reading the words in reverse order and if the first letter of the word isupper() then make it lowercase and append it to a list which i will later print. This is what i have

Advertisement