← back to unit
Easy
# basics io
Reading More Than One Line
Every time you call input(), it reads the next line the user types. Call it twice to read two separate answers:
first = input()
second = input()
print(first)
print(second)
Your turn: read someone's name, then their favorite color (two separate input() calls), and print each one on its own line.
💡 need a hint?
pyb-io-two-inputs.py
loading...