Menu
Coddy logo textTech

What is a String?

Lesson 1 of 19 in Coddy's Into the Past || Complete Beginner for Python Strings course.

In the python programming language information that is not a number is called a string

A string of characters as they say.  A string is contained inside quotations ' ' or  " ".  

My name is Sam.  So if I wanted to assign my name to a variable,  let's say name

I would do so like this:

name = "Sam"

This is how you assign a string to a variable.  You try it in the next lesson

Try it yourself

This lesson doesn't include a code challenge.

All lessons in Into the Past || Complete Beginner for Python Strings