Skip to content
Advertisement

Tag: uppercase

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 Upper function

The response I get : The response I expected : What can be the issue here? Answer To get the expected output, consider try this: Your df: to get the dictionary: Block Code:

Advertisement