I'm trying to make my first app and was wondering how do I make a list out of a list. Following some tutorials on udemy .
Body is my main list followed up by a -> new list Head, which has its lists -> Eyes
I understand it so far: I run a for loop through all body parts then I attach all head data to head but I'm not sure how to do this.
list_body = ["head","arms","legs"] list_head = ["eyes","nose","mouth"] list_eyes = ["color","shape"]The concept is as this:
Body is my main list followed up by a -> new list Head, which has its lists -> Eyes
I understand it so far: I run a for loop through all body parts then I attach all head data to head but I'm not sure how to do this.
print(muscle_group) empty_muscle_group = [] for number_list in muscle_group: empty_muscle_group.append(number_list) print(empty_muscle_group)this is what iv come across so far. I will allow inputs to be done to add new data but for now, I want to understand the basics