Write a simple Python program that asks a user to input their age and name and then return the text: "Hi my name is *NAME*, and I am *AGE* years old."

Use the follow to create a simple age + name Python program:

1) age = input("Enter age: ")

2) name = input("Enter name: ")

3) print("Hi, my name is " + name + ", and I am " + age + " years old.")

CB
Answered by Christopher B. Python tutor

142310 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

How would you get a piece of code to print the numbers 1 to 10


Create a program that checks for syntactical errors in an email address.


Manually implement a function that finds the smallest value in a list of integers and print it.


How do I define a function in Python?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2025 by IXL Learning