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
Tag: lowercase
Best Way to Implement a Custom lower() method in Python
I have an assignment where I’m not allowed to use the .lower() function so I’m creating my own. At the moment I have two ideas on how to do this but would love some input on what the most efficient way would be. Method 1: Using if elif function This is the most basic way I could think of, simply
Python: How do you make a list start with the lowercase strings?
I’m currently making a simple code that allows the user to input a sentence or a group of words and the program will sort the words alphabetically. This initial code works great but unfortunately, it prints out the uppercase words first and then the lowercase words. I was hoping if there was a simple way to reverse this and have
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