Skip to content

Ariefah Shalihah

  • Home
  • About

How to capitalize only the first letter of a word in Python

Use str.capitalize()

Use str.title()



how-to-capitalize-only-the-first-letter-of-a-word-in-python

Categories PYTHON
Post navigation
How to call a parent class constructor in Python
How to cast an int to a string in Python

Recent Posts

  • How asynchronously call methods in Python
  • How get a function name as a string in Python
  • How pretty print a JSON file in Python
ariefahshalihah