Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
Create a multiline string that states your favorite hobby.
Use triple quotes.
What does r"C:\Windows" do?
Check what the 'r' does.
What does a multiline string in Python use?
Think about what allows many lines to exist in one string.
Raw strings ignore escape sequences. True or False?
Reflect on what the 'r' is for in a string.
Write a Python program that takes a path input as a raw string and displays the path explicitly.
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.
Use triple quotes and ensure each book is on a new line.
5 more questions in this section. Enroll free to practise them all.
Enroll free