I want to make a function that would uncapitalize capitalized letters.
I was thinking I could do
if x in caps
where caps is a list of all the capital letters, and I had it return the position in the list that letter is in, I could have it replace itself with the lowercase.
How would I do this?
Thanks.
Why not use the built in “lower”
If that doesn’t work, you can always iterate and then use ord and chr: