Question: Question 1 : Creating a person Write a function called create _ person ( person _ description ) that creates a 5 element list from

Question 1: Creating a person
Write a function called create_person (person_description) that creates a 5 element list from a string, where the first
element is a unique id number, second element is the person's name (which is itself a list), the third element is their sex (assume
possible values of male and female), the fourth element is their age, and the fifth element is a list of unique id numbers as a
placeholder for children, which will initially be empty (more about this soon in question 3).
For example:[100,['Justin', 'Smith'], 'male', 32,[]][101,['Justine','Smith'], 'female', 33,[]][102,['James','Smith'], 'male', 4,[]][103,['Jane','Smith'], 'female', 6,[]]
You may assume that only names are capitalized, and that the only numbers that are used in these sentences are for someone's age.
 Question 1: Creating a person Write a function called create_person (person_description)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!