Question: Person is a named tuple with fields: first _ name, last _ name, state, and age. Variable person is a Person object created with three
Person is a named tuple with fields: firstname, lastname, state, and age. Variable person is a Person object created with three strings and one integer read from input as attributes. Output the following:
"First name: followed by person's firstname attribute
"Last name: followed by person's lastname attribute
"State: followed by person's state attribute
"Age: followed by person's age attribute
End each output with a newline.
Click here for example
Ex: If the input is:
Pat
Pham
ND
then the output is:
First name: Pat
Last name: Pham
State: ND
Age:
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
