Skip to content

Simacoder/user_input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Intro To Python Assignment

Objective: To learn how to take user input in Python

Write a program that asks the user for their name, age, and location and then prints out a personalized message.

Instructions:

  • Create a new Python file and name it "user_input.py"
  • Use the input() function to ask the user for their name and store it in a variable called "name".
  • Use the input() function to ask the user for their age and store it in a variable called "age".
  • Use the input() function to ask the user for their location and store it in a variable called "location".
  • Print out a personalized message using the user's name, age, and location. For example: "Hello [name], you are [age] years old and live in [location]."
  • Save and run the program to see the output.

Note: Upload the code to github and submit the github link

AUTHOR

  • Simanga Mchunu

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages