Skip to content
C

Personal Details Formatter

Easypython

Practice reading multiple pieces of input and combining them into one clean sentence using an f-string.

You are given a person's name, age, and city, one per line. Combine them into a single formatted sentence.

What the problem means: read three separate pieces of input (two pieces of text, one number) and weave them into one output sentence, matching the punctuation shown in the example exactly.

Approach: read the name and city directly with input(). Read the age as an integer with int(input()). Then build the sentence with an f-string.

Input: Three lines: the person's name, their age (a whole number), and their city.

Output: One line: <name> is <age> years old and lives in <city>.

Input (stdin)

Output

Run your code to see output here...