course content

Course Content

Introduction to Python

Storing TextStoring Text

In the first chapter, you learned how to make the Python output message "Hello, Python!". This message is called a string. In Python, strings are used to store text (which may contain numbers, too).

To store text in Python, you need to enclose it within quotation marks (single or double). For example, we can save the word Python within the language variable and output it.

Note that using quotation marks is compulsory. If you don't use them, then an error will be raised.


Task

Assign the course name ('Introduction to Python') to the course variable and output it.

question-icon

Fill in the blanks to complete the task.

# Create variable course
_ _ _
_ _ _
_ _ _
_ _ _
_ _ _

# Output course variable value
print(course)
Introduction to Python

Click or drag`n`drop items and fill in the blanks

dots
Introduction to Python
dots
"
dots
"
dots
course
dots
=
down-icon

Section 2.

Chapter 7