Quiz Yourself on Strings and Regular Expressions

Test your knowledge of strings and regular expressions.

Quiz

1

What is the correct way to store the string He said, "Let Us Python"?

A)
s1 = "He said, \"Let Us Python\""
B)
s2 = r'He said, "Let Us Python"'
C)

Both A and B

D)

None of the above

Question 1 of 80 attempted

Get hands-on with 1400+ tech skills courses.