Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 : Creating a person Write a function called create _ person ( person _ description ) that creates a 5 element list from
Question : Creating a person
Write a function called createperson persondescription that creates a 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
For example:Justin 'Smith' 'male', Justine'Smith' 'female', James'Smith' 'male', Jane'Smith' 'female',
You may assume that only names are capitalized, and that the only numbers that are used in these sentences are for someone's age.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started