The first thing to do is ask the user to input a message. This is possible by creating a new variable, and using input
.
- Open the main.py file for editing
- Create a new variable named
message
- Set the
message
variable to aninput
function call - Make the text for the prompt say
"Please enter a message: "
The added Python code should look something like this:
message = input("Please enter a message: ")
Run the code, and verify that a prompt appears asking for a message. Nothing should happen when entering a message yet though!