Skip to main content

Manipulating Information

Now that you understand basic variables and data types, it’s time to learn how to manipulate them. In this section, we will learn how to perform calculations and perform text processing.

The main topics

Operators

Mathematical, comparison, and logical operations

String manipulation

Advanced text formatting, indexing, slicing, and methods

Prerequisites

Before starting this section, make sure you understand:
  • How to define variables in Python
  • Basic data types (integers, floats, strings, and booleans)

Let’s begin!

Start by learning how to perform calculations and logical checks in Python.

Operators

Learn calculations and comparison operators