Question: using python oblem 1 - (6 sarks) (-) Create a Python class family, which will have the following attributes' w first_name> default set toon by

 using python oblem 1 - (6 sarks) (-) Create a Python

class family, which will have the following attributes' w first_name> default set

using python

oblem 1 - (6 sarks) (-) Create a Python class family, which will have the following attributes' w first_name> default set toon by _init_ my_for_home -> fult to ich' by _init_ father default sett by __init_ thers_mont -> default ette 'n by _init mone - default set to by init druthersefelt set to how by nit the class shade also contain the following methods 1.init_first_name = "to, secondo Was) willing the elements in the follander ist Tirst_name to my_first_name - second_name to my_family name - my_fathers_name, my_mothers_name, my sisters_name and my_brothers_name will all be set to the string 'unknown 2. 'return_my_name(self) (1 marks) - the function will return a "list" containing two elements in the following order my_first_name, my_family_name 3. 'add_parents_names(self, mothers_first_name, fathers_first_name) (1 marks) - assign mothers_first_name to my_mothers_name assign fathers_first_name to my_fathers_name 4. 'add_siblings_names(self, sisters_first_name, brothers_first_name) (1 marks) - assign sisters_first_name to my sisters_name - brothers_first_name to my_brothers_name 5. 'return_all_first_names (self) (1 marks) - this function will return a dictionary as follows: {'me':my_first_name, 'my_mum' :my_mothers_name, 'my_dad': my_fathers_name, "my_sister': my_sisters_name, 'my_brother': my_brothers_name} 6. 'check_if_my_sisters_name(self, name) (1 marks) test whether name is equal to my sisters name if yes return True - if not return false

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!