I have a string named userName in my program. It holds a users name and I want to be able to change it's first letter to a capital if not already.
For example if userName = "john" I want it to change too "John"
I attempted this:
userClass[1] = userClass[1].upper()
That does not work.
Any ideas?