Difference between str.capitalize and str.title in Python #Shorts

preview_player
Показать описание
title() function is used to convert the first character in each word to Uppercase and remaining characters to Lowercase returns a new string.

capitalize() method converts the first character of a string to a Uppercase. If the string has its first character as capital, then it returns the original string.

If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.

#shorts
#python3​​ #programming​​ #programmintips​ #pythontips​ #codingtips​
Рекомендации по теме
Комментарии
Автор

Your channel will grow exponentially!!
Remember this. And keep posting!

krishnsaraswat