Python Raw Strings Quiz
Interactive Quiz ⋅ 6 Questions
By Bartosz Zaczyński
Python treats backslashes (\
) that appear inside string literals in a special way, which can sometimes lead to surprising effects. In particular, they don’t show up as literal backslashes in the output. Depending on what characters immediately follow the backslash, you may get an error, a warning, or at best, a completely unintended outcome. With raw string literals, you can avoid these problems and write more elegant Python code!
The quiz contains 6 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!