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.")

Answered by Christopher B. Python tutor

87884 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Write a Python script to take a product name as input and then automatically google search reviews for it and open the top 3 search results in different tabs


Write a program that takes a value x and then outputs x Fibonnaci numbers. E.g. if x=6 output would be 1 1 2 3 5 8


What built-in types does python provide?


Create an algorithm that can be used as a guessing game. Make sure to import random at the start.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy