When I call my function in the Python shell I want the list of boolean arguments to be inside both regular parentheses and square brackets like so which_animal([True,True,True,True,True,True,True]) if someone can also explain the process used it would serve to be very helpful.
Here is my code for any reference
which_animal(backbone,shell,six_legs,give_birth_to_live_babies,feathers,gills,lay_eggs_in_water):
if backbone:
if give_birth_to_live_babies:
return 'Mammal'
if feathers:
return 'Bird'
if gills:
return 'Fish'
if lay_eggs_in_water:
return 'Amphibian'
if not lay_eggs_in_water:
return 'Reptile'
if not backbone:
if shell:
return 'Mollusc'
if six_legs:
return 'Insect'
if not six_legs:
return 'Arachnid'