Could any one help me to debug the following python code?
code is shown here:
#!/usr/bin/python
# Filename: using_tuple.py
zoo = ('python', 'elephant', 'penguin') # remember the parentheses are optional
print('Number of animals in the zoo is', len(zoo))
new_zoo = ('monkey', 'camel')
print('Number of cages in the new zoo is', len(new_zoo))
print('All animals in new zoo are', new_zoo)
print('Animals brought from old zoo are', new_zoo[2])
print('Last animal brought from old zoo is', new_zoo[2][2])
print('Number of animals in the new zoo is', len(new_zoo)-1+len(new_zoo[2]))
'python','elephant', and'penguin'belong to the new zoo, that is, they have been brought from the old zoo; second, whether those three animals have been put in a single cage in the new zoo. Calculations and tuple accesses inprint()calls are contradictory, swinging between different models of the new zoo. Without a further explanation of how you intend to model the new zoo with respect to the old zoo, it's quite impossible to guess exactly what the correct answers should be.