Question: Create a Python program that does the following: Declare and initialize three variables: name as a string containing your name. age as an integer representing
Create a Python program that does the following:
Declare and initialize three variables:
name as a string containing your name.
age as an integer representing your age.
height as a float representing your height in meters.
Print a sentence that introduces yourself using the variables you declared. For example, My name is John Doe, I am years old, and I am meters tall."
Concatenate the variables name, age, and height into a new string called the introduction.
Print the introduction string.
Format the introduction string using fstrings to include the variables in a more readable sentence.
Print the formatted introduction string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
