- Pyroom
- Tutorials
- Getting started with Pyroom
- Ask the user a question with input()
Ask the user a question with input()
input() pauses your program until the user types an answer. In Pyroom you type it straight into the console, below the output.
Beginner Video coming soon. The steps below show everything the video will cover.
Steps
- input shows a question and waits. Whatever the user types is stored in a variable.
- Press Run. The program stops at the question and waits for an answer.
- Type your answer in the console and press Enter.
- The program continues and uses your answer.
Read the transcript
input shows a question and waits. Whatever the user types is stored in a variable.
Press Run. The program stops at the question and waits for an answer.
Type your answer in the console and press Enter.
The program continues and uses your answer.
More Getting started with Pyroom tutorials
- Write and run your first Python program · Beginner
- Open a ready-made example and run it · Beginner
- Read a Python error and fix it · Intermediate