Python String Methods

Python gives us many useful methods for dealing with Strings.

1) Make all the characters in a string upper case

2) Make all the characters in a string lower case

3) Make the first letter of a string capital

4) Make a string title case

Title case means that the first letter of every word is capitalized

5) Check if a string is a number

6) Check the length of a string

7) Pad a string with zeros

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response