Input
How Can We Help?
Teacher,
Cat enthusiast
- The 2022 End of Year Website Update - 01/01/2023
- Celebrating Ada Lovelace day - 10/10/2022
- Website update 5/9/22 - 05/09/2022

The input block is really clever and allows us to do lots of different things such as:
- Asking the user a question and allowing them to type in an answer
- Asking the user to type a value into a program EG their name
- Allowing the user to choose an option
We store our inputs in variables. This block includes a variable (called variable) but we can alter the name of this if we want at any time.
The text in between the speech marks prints a request to the user onto the console, so if we wanted to ask the user to enter their name we would type in this box Enter your name.
Example

This block is storing the users input into a variable called name. On the console screen the user will be prompted to enter their name and will see Please enter your name.
This is the Python code that is generated:

This is how the code will appear in the console in repl:

The user can now enter their name in the console and it will save this to the name variable:
