Apr-14-2017, 04:43 AM
I have a set being passed to a function. Each element has a word in it with a mixture of upper and lower case characters. I need to find the one with the least uppercase letters and return it. I'm at a loss, but I'll show you what I've done so far. All the print statements are so I can see what I have done.
count = str(group) print(count) count = sum(1 for character in group if character.islower()) countString = ','.join(str(string) for string in group) print(countString) countString = countString.split() print(countString) countString = countString.strip().split(",") print(countString) print(count) #word.split(",") #print(word)Any ideas?