String Interpolation with 'raw'
In the following lesson, you will be introduced to the 'raw' string interpolator.
We'll cover the following
The raw
string interpolator is similar to the s
interpolator. The only difference is that raw
doesn’t recognize character literal escape sequences.
The raw
String Interpolator
For string interpolation with raw
, we prepend the word raw to any string literal. This allows us to print characters symbols within strings.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy