Strings may contain the format characters you have discovered so far. You simply put the formatted variables in the string - and then a % (percent) character - followed by the variable. The only catch is that if you want multiple formats in your string to print multiple variables - you need to put them inside ( ) (parenthesis) separated by - (commas). It's as if you were telling me to buy you a list of items from the store and you said - "i want milk - eggs - bread - and soup." Only as a programmer we say - "(milk - eggs - bread - soup)."

🎲 Try a Random Question  |  Total Questions in Quiz: 578  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Python Full Review — practice the complete quiz, review flashcards, or try a random question.


1. Strings may contain the format characters you have discovered so far. You simply put the formatted variables in the string - and then a % (percent) character - followed by the variable. The only catch is that if you want multiple formats in your string to print multiple variables - you need to put them inside ( ) (parenthesis) separated by - (commas). It's as if you were telling me to buy you a list of items from the store and you said - "i want milk - eggs - bread - and soup." Only as a programmer we say - "(milk - eggs - bread - soup)."