Section 1 - Instruction

We've covered a lot, including if/else if/else, logical operators (&&, ||, !), and nesting conditions!

Engagement Message

Before wrapping up this course, are you ready to learn a neat trick for displaying information and practice combining concepts?

Section 2 - Instruction

Often, we want to print messages that include variable values, like "Your score is 95".

Manually combining strings and numbers can be tricky. Swift offers string interpolation to make this easy!

Engagement Message

Ever heard of this before?

Section 3 - Instruction

Using string interpolation is simple! Just place any variable name within \() inside your string. Swift automatically inserts the variable's value.

Example:

Engagement Message

What do you expect this code to print?

Section 4 - Instruction

String interpolation shines inside conditional statements, making your output dynamic and clear.

Here the output changes based on allowing us to seamlessly integrate variables into the output.

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal