Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Quick recap
2. Strings in Python
Indexing and slicing
Summary

Instruction

In Python, strings are text values in single ('sample text') or double quotes ("sample text"). There is no difference between these two notations; whichever you use, simply try to stay consistent. In this course, we'll stick to single quotes.

greeting = 'Hello, world!'
print(greeting)

The code above creates a new variable named greeting and prints its value to the output.

Exercise

Create a variable named species with the following content: Aspidites melanocephalus

Stuck? Here's a hint!

Remember to put the content inside single quotes.