๐Ÿ PyQuest๐Ÿš€ First Steps ยท ๐ŸŽค Talking to Your Program
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

Talking to Your Program ๐ŸŽค

So far your programs only talk at you. Time to talk back!

input() asks a question, waits for someone to type an answer, and hands you whatever they typed:

color = input("What's your favorite color? ")
print(f"Ooh, {color} is a great choice!")

When you run this, the program pauses and waits for you to type in the console. Try it!

Your mission

  1. Use input() to ask for someone's name and store it in a variable
  2. Use input() again to ask for their favorite hobby
  3. Print a friendly sentence that uses both answers

Your code

Press โ–ถ Run to see what your code does!