This repository walks you through the Object Oriented Programming in python. Illustrates real world examples, working codes and going about finding a coding solution.
GNU General Public License v3.0
161
stars
188
forks
source link
FormatStringInput.py does not fully explain how to use .capitalize() #173
So, what the above mentioned file does not include, is an explanation of how .capitalize() works. It does two things: first, it will capitalize the first character, as long as it is a letter. If you try to call the method on something that has a blank space or a number or any non-letter character as the first character, it will not work. Second, it will convert all other letters to lowercase.
So, what the above mentioned file does not include, is an explanation of how .capitalize() works. It does two things: first, it will capitalize the first character, as long as it is a letter. If you try to call the method on something that has a blank space or a number or any non-letter character as the first character, it will not work. Second, it will convert all other letters to lowercase.