0
How do i assign an owner to his/her pets?
Both lists are lists of objects, owner list with attributes name, lastname, and petlist with attributes typeofpet,name, gender and age. Parent=[[âSaraâ, âJohnsonâ],[âHectorâ, âRodriguezâ]] Pets=[[âcatâ, âcatnameâ, âmaleâ, 2],[âbirdâ, âbirdnameâ, âfemaleâ, 3]] How do i for example give sara both of the pets?
1 RĂ©ponse
+ 1
Use a dictionary.