Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

instruction Back
Instruction

Different Types of String Formatting

We now know how to create a string, and we know how to make a variable, but what if we want to put a variable inside of a string? For example, say we have the string that we want to print: ”My favorite topping on a waffle is bananas!” This is great, but it’s not very versatile. What if we wanted it to say, bananas, chocolate chips, or blueberries? Better yet, what if the topping changed ...