Why would you use a tuple instead of a list, and vice versa?
Your friend writes a Python program to automate a network configuration task. The code has 500 lines without any defined function. The code works fine when he or she clicks on the “run” button in the IDE. Do you think there is anything wrong with this code? Why? Do you think functions are necessary in Python codes?