This Python script prompts the user to enter their name, age, and location, then prints a personalized message with the provided information.
- Asks the user for their name, age, and location.
- Outputs a personalized message based on user input.
-
Save the Script:
- Save the provided Python script as
user_input.py.
- Save the provided Python script as
-
Run the Script:
- Open a terminal or command prompt.
- Navigate to the directory where
user_input.pyis saved. - Run the script using the following command:
python user_input.py
-
Provide Input:
- When prompted, enter your name, age, and location.
-
View Output:
- The script will display a message with the information you provided.