Python Adding objects to a collection
<p>I'm new to python and having trouble with this part. I have a class called Pet and a class named Dogs. I need Pets to declare a collection to hold the various dogs to be added to a list, tuple,or dictionary either one thats easier. For instance</p>

<pre><code>pitbull=Dog()
shepard=Dog()
guard_dog=Dog()

animal=Pet()
</code></pre>

<p>I don't know if python allows objects to be stored in list.In java I can simply store them in a arrayList. Like <code>pet=arrayList&lt;Dog&gt;()</code>. I've search around and don't know how to add the Dog objects to a list, tuple,or dictionary in python.Please help anyone</p>
