Introduction to Python · 8 / 10 Exercise Easy

Read user input

Objective

In this exercise, you will learn how to write a Python program that interacts with the user by asking a simple question: What's your favorite animal?. 

The program will halt its execution and wait for the user's response. Once the user presses the Enter key, the program will respond with a friendly message: Mine too!.

Input
dog
Output
What's your favorite animal?
Mine too!

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise