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

130521 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Why would I use dictionaries instead of a list?


Sales is real Customers is integer startmainprog input Sales input Customers if ((Sales > 500) OR ((Sales > 300) AND (Customers>9))) then output “Bonus Awarded” else output “No Bonus” end if end subroutine. Sales = 600 Customers = 9, answer:


Write a function that takes a string, and outputs that string formatted in camelcase. (alternating upper and lower case for each character, e.g. cAmElCaSe)


What is the difference between DFS and BFS? Where can I apply each?


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–2025

Terms & Conditions|Privacy Policy
Cookie Preferences