Question: In python3: Question 3: (0.5 points) Write a function called format_person_info that receives two mandatory parameters name and age and returns a string containing the
In python3:

Question 3: (0.5 points) Write a function called format_person_info that receives two mandatory parameters name and age and returns a string containing the first and last name (disregarding middle names) followed by the phrase "is age years old". For instance print (format_person info('Luis Gustavo Nonato',48) should result in Luis Nonato is 48 years old A third, optional parameter, can also be provided, which specify the job position. For instance print (format_person_info( Luis Gustavo Nonato,48, Data Scientist) should result in Luis Nonato, Data Scientis, is 48 years old def format_person_info(name, age, job-"): In Begin Solution # End Solution Question 4: (2.5 points) Write a unit test for the function format _person info you implemented in question 3. Your unit test should assert the function correctness when two or three parameters are provided In : import unittest # Begin Solution # End Solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
