Editor settings

General settings

Save settings

Learn to program with Python

Python Strings #

In Python, a string is a sequence of characters that is used to represent textual data. You can create a string in Python by enclosing a sequence of characters in single quotes ' or double quotes ", like so:

my_string = "Hello, World!"

Exercise #

  • Create a variable name and assign your name to it.
Output will be displayed here