Strings are one of the most fundamental data types in any programming language. In Python strings are used to represent text and are defined using either single quotes (‘ ‘) or double quotes (” “).
In this lesson, we will explore the basics of strings in Python. We will look at how to define strings, access characters in strings, iterate over strings, use string methods, and format strings. Strings are a key building block for any program that needs to work with text data, so learning to manipulate and format strings opens up a lot of possibilities for your Python programs.
Overview about Our Python Lesson 4
Python Strings Seven pages of summary in PDF format to start learning the Python language with a series of lessons that we will complete together to master the Python language
By the end of this lesson, you will know how to confidently work with and manipulate strings in Python. Let’s get started!
Lesson Content
- Python Strings
- Assign String to a Variable
- Multiline Strings
- Strings are Arrays
- Looping Through a String
- String Length
- Check String
- Check if NOT
- Python Slicing Strings
- Slicing
- Slice From the Start
- Slice To the End
- Negative Indexing
- Python String Concatenation
- Python Format Strings
- Python Escape Characters
- Python – String Methods
- Python – String Exercises
Lesson Format
Nu Of Pages
7
Download Python Lesson 4 From here
Python Lessons
Python From Scratch Lesson 1
Python From Scratch Lesson 2 Pdf (Python Variables)
Python From Scratch Lesson 3 PDF (Python Data Types, Numbers, and Casting)