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


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!'

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


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

Stuck? Here's a hint!

Remember to put the content inside single quotes.