ds_using_tuple.txt 328 B

12345678
  1. $ python ds_using_tuple.py
  2. Number of animals in the zoo is 3
  3. Number of cages in the new zoo is 3
  4. All animals in new zoo are ('monkey', 'camel', ('python', 'elephant', 'penguin'))
  5. Animals brought from old zoo are ('python', 'elephant', 'penguin')
  6. Last animal brought from old zoo is penguin
  7. Number of animals in the new zoo is 5