Print Multiple Lines
beginnerUp next
Variables and Data Types
Store values in variables and learn the basic kinds of data Python works with.
Next lessonUp next
Store values in variables and learn the basic kinds of data Python works with.
Next lessonOutput will appear here...
The starter code reads three words, one per line. Print them on a single line separated by |, then print each word on its own line.
For the input red, green, blue, a correct solution prints:
red | green | blue
red
green
blue
Tip
You'll need one print() that uses sep, followed by three plain print() calls.
No comments yet. Start the discussion.