This Python script, user_input.py
, allows users to input their name, age, and location to receive a personalized message.
-
Clone the repository or download the
user_input.py
script. -
Open a terminal or command prompt.
-
Navigate to the directory where the script is located.
-
Run the script using the Python interpreter:
python user_input.py
-
Follow the prompts to input your name, age, and location.
-
The script will generate and display a personalized message based on the provided information.
What's your name: Samuel
Enter your age: 25
Where do you live? Cityville
Output:
Hi Samuel, you're 25 and live in Cityville.