python

String Manipulation in Python

BEGINNER

#python

Author: Oleksandr Lomako

Course description

As a data scientist or analyst, you will have to deal with different data types. The first thing that comes to mind - is numerical data, of course. But also you will have to deal with textual data often. In this course, you will dive into strings, that represent textual data in Python, and learn how to perform different manipulations with them.

info

Complete all chapters to get certificate

0%

Basic Concepts

chevron

In this section you will be introduced with the basic concepts of strings in Python, such as creating, indexing, and slicing.

Creating a String

Multiline Strings

Accessing String Elements

String Slicing

Advanced Slicing

Negative Indexing

Challenge

Strings Concatenation

String Methods

chevron

In this section we will learn important strings methods, like .split, .count, .strip and so on...

Counting

Replacing

Trimming

Splitting

Splitting the Lines

Joining

Strings Formatting

chevron

In this section we will learn how to format strings, learn about f-string conception, replacing particular parts of strings, splitting string by lines and so on...

f-strings Conception

Positional Formatting

Formatting with Ordering

Formatting by Keys

Challenge

Advanced Formatting: Positioning

Advanced Formatting: Sign

Advanced Formatting: Float, Round, and Percent

Calculating and Formatting Dynamics