Write a program which asks the user for their name and age. The program should then print a sentence.What is your name?CoryWhat is your age?48Cory is 48 years old.

1 answer
Question:

Write a program which asks the user for their name and age. The program should then print a sentence.
What is your name?
Cory
What is your age?
48
Cory is 48 years old.

Answers

Answer:name = input("What is your name? ") age = int(input("What is your age? ")) print("%s is %d years old."% (name, age))Explanation:This is a solution in python.

Similar Solved Questions

2 answers

How many moles of oxygen are needed to completely react with 9.5 grams of sodium

How many moles of oxygen are needed to completely react with 9.5 grams of sodium...
1 answer

Find all roots of the polynomial x4 - 6x + 3x + 24x - 28 given x = -2 is a root.

Find all roots of the polynomial x4 - 6x + 3x + 24x - 28 given x = -2 is a root....
1 answer

• King of England from 1189 to 1199 • Undertook the Third Crusade in order to retake Jerusalem from the Muslims • Known for bravery and his leadership but ultimately failed to take the city from Muslim control Who is being described above? A. Richard the Lionheart B. Saladin C. Frederick Barbarossa D. Urban II

• King of England from 1189 to 1199 • Undertook the Third Crusade in order to retake Jerusalem from the Muslims • Known for bravery and his leadership but ultimately failed to take the city from Muslim control Who is being described above? A. Richard the Lionheart B. Saladin C. Frederick Barba...
2 answers

If a student didn’t understand proportional relationships, how would you explain it to them?

If a student didn’t understand proportional relationships, how would you explain it to them?...
1 answer

Describe the important functions of legislature in brief​

describe the important functions of legislature in brief​...
2 answers

CAN SOMEONE HELP ME WITH THIS PLEASE AND THANK YOU

CAN SOMEONE HELP ME WITH THIS PLEASE AND THANK YOU...
1 answer

Can someone help me find this

Can someone help me find this...
1 answer

Richard Walker claims San Francisco's reputation as a liberal environmentally progressive place was very different in the 19th century. Then it was considered a _______ city ________ the resources of the Pacific Coast.

Richard Walker claims San Francisco's reputation as a liberal environmentally progressive place was very different in the 19th century. Then it was considered a _______ city ________ the resources of the Pacific Coast....
2 answers

Chad was asked whether the following equation is an identity: (3x + 2y)^2= (3x + 2y)(3x – 2y) + 2(2y)^2 ? He performed the following steps: (3x + 2y) Step 1 = 922 + 4y Step 2 9r? – 4y + 4y? – 4y Step 3 (9x² – 44²) + 8y²

Chad was asked whether the following equation is an identity: (3x + 2y)^2= (3x + 2y)(3x – 2y) + 2(2y)^2 ? He performed the following steps: (3x + 2y) Step 1 = 922 + 4y Step 2 9r? – 4y + 4y? – 4y Step 3 (9x² – 44²) + 8y²...
1 answer

What happens when Beowulf first arrived on the shore of Hrothgar's lands

what happens when Beowulf first arrived on the shore of Hrothgar's lands...
1 answer

Someone flips five coins, but you don’t see the outcome. The person reports that no tails are showing. What is the probability that the person flipped 5 heads?

Someone flips five coins, but you don’t see the outcome. The person reports that no tails are showing. What is the probability that the person flipped 5 heads?...
1 answer

By the time Grant's tenure as president had ended, so had

By the time Grant's tenure as president had ended, so had...
1 answer

You are given the set of letters { A, B, C, D, E } . How many three-letter strings (i.e., sequences of 3 letters) can be made out of these letters if each letter can be used only once? (In this and subsequent questions, your answer should be a number. Do not enter ‘!' or combinations in your answer.)

You are given the set of letters { A, B, C, D, E } . How many three-letter strings (i.e., sequences of 3 letters) can be made out of these letters if each letter can be used only once? (In this and subsequent questions, your answer should be a number. Do not enter ‘!' or combinations in your answe...
1 answer

Which of the following best describes how the weather will change when a cold front moves into an area? A. The weather will become drier. B. The weather will become clear and cool. C. The weather will become stormy, but when the front passes, the weather will become cool and dry. D. The weather will become stormy and warmer.

Which of the following best describes how the weather will change when a cold front moves into an area? A. The weather will become drier. B. The weather will become clear and cool. C. The weather will become stormy, but when the front passes, the weather will become cool and dry. D. The weather ...
2 answers

Which events could not be caused by a population bottleneck?

Which events could not be caused by a population bottleneck?...
1 answer

The Lottery short story Do you think the townsend people are influenced by those of the actions around them? Explain​

The Lottery short story Do you think the townsend people are influenced by those of the actions around them? Explain​...
2 answers

You have a match and you enter a wagon with a candle, a lamp and a fireplace. Which one do you light first?

You have a match and you enter a wagon with a candle, a lamp and a fireplace. Which one do you light first?...
1 answer

Most canoeing accidents occur: A. On moving water B. On calm waters rivers and lakes C. During sudden storms D. On the ocean

Most canoeing accidents occur: A. On moving water B. On calm waters rivers and lakes C. During sudden storms D. On the ocean...
2 answers

I need a 250 word blog introduction within an hour

I need a 250 word blog introduction within an hour...

-- 0.050430--