Python from Scratch


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

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button