why have you written .append in the add activity method
The append in add activity
Hey @sankalparora5, since self.activities is a type of list, means we need to store all activities that a dog class object could perform. So to add an element to the list there is a function named ‘.append()’ and hence we have used it to add an activity to it.
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.