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

Related Python Mentoring answers

All answers ▸

How could I write a program to convert Km/h to m/s in python


Ask the user for a number and output the smallest divisor, bigger than one, for the inputted number. Output "Prime" if the number is a prime number.


Write a function that takes a list of numbers as input, and outputs the average of the numbers. The function should catch any errors.


Why are negative indexes used?