josharsh / josharsh/OPython-Init

FormatStringInput.py does not fully explain how to use .capitalize()

Open
#173 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
165
Forks
196
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.