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
Reformatted some explanations in 'FormatStringInput' and added a new method #174
I added to the explanation of .capitalize() because it is important to understand that it cannot work if the first character is not a letter. It is also important to understand that if you call the method on a string that has capitalization beyond the first character, this method actually converts all other letters to lowercase. In addition, added a string demonstration to show the full functionality of .capitalize.
Finally, added a third method, using .capwords() which just shows the user a way to capitalize the first letter of every word in a string.
I added to the explanation of .capitalize() because it is important to understand that it cannot work if the first character is not a letter. It is also important to understand that if you call the method on a string that has capitalization beyond the first character, this method actually converts all other letters to lowercase. In addition, added a string demonstration to show the full functionality of .capitalize.
Finally, added a third method, using .capwords() which just shows the user a way to capitalize the first letter of every word in a string.