7.6 - Multiline and Raw Strings
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
Create a multiline string that states your favorite hobby.
💡 Hint: Use triple quotes.
What does r"C:\\Windows" do?
💡 Hint: Check what the 'r' does.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does a multiline string in Python use?
💡 Hint: Think about what allows many lines to exist in one string.
Raw strings ignore escape sequences. True or False?
💡 Hint: Reflect on what the 'r' is for in a string.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Write a Python program that takes a path input as a raw string and displays the path explicitly.
💡 Hint: Ensure to use the 'r' prefix for the path.
Create a multiline string that includes a list of your top five favorite books, one per line.
💡 Hint: Use triple quotes and ensure each book is on a new line.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.