bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Python/Foundations
Python•Foundations

Python - Modify Strings

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Python - Modify Strings?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Order

Put the learning moves in the order that makes the concept easiest to apply.

Whitespace is the space before and/or after the actual text, and very often you want to remove this space.
Python has a set of built-in methods that you can use on strings.
Python - Modify Strings

Python has a set of built-in methods that you can use on strings.

Upper Case

upper()

Lower Case

lower()

Remove Whitespace

Whitespace is the space before and/or after the actual text, and very often you want to remove this space.

strip()

Replace String

replace()

Split String

The split() method returns a list where the text between the specified separator becomes the list items.

split()

Learn more about Lists in our Python Lists chapter.

String Methods

Learn more about String Methods with our String Methods Reference

Previous

Python - Slicing Strings

Next

Python - String Concatenation