Ask Question
18 December, 18:40

This is the assignment

Write a program that:

stores your name in one variable called name

stores your age in another variable called age

prints a one-line greeting that includes your name and your age.

Your program should output something like this:

Hi! My name is Arthur and I am 62 years old.

Hint: Do not get user input for the values of name and age but instead simply save these values inside your program as static variables, or variables that do not change value.

What should my code be?

+5
Answers (1)
  1. 18 December, 20:55
    0
    name=input ("Enter your name")

    age=input ("Enter your age")

    print ("Hi! My name is " + name + " and I am" + age + " years old.")
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “This is the assignment Write a program that: stores your name in one variable called name stores your age in another variable called age ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers