Skip to main content

Python Strings


In this tutorial you will learn:

  • Strings in Python
  • Immutable and Mutable in Python
  • Joining two Strings
  • String Slicing
  • Finding length of a String

Strings in Python

In the previous tutorial we learned what variables are and how Python deals with variables. In this tutorial we will start by learning the details and usage of String type variable in Python.

    1. myString = “I am a developer”
    2. myHelloString = “Hello”
    3. myWelcomeString = “Welcome”

In Python we can write strings in either three quotes ‘’’Python’’’, two quotes “Developer” or in single quote ‘Code’.


Add new comment