Lists
-
Develop a Python program for adding and multiplying two large integers whose digits are stored in lists. For example: integer number
123is stored as3::2::1. Establish the correctness of your solutions. -
Assume you have been given a list of file and directory names along with the respective access control modes (as
drwxrwxrwx). The storage structure is a list of pairs. For example[('assign1', -r--r--r--), ('lectureNotes', dr-xr--r--)]indicates two objects: the first object is a file with nameassign1and access permissions444; the second object is a directory namedlectureNoteswith access permissions544. Develop a python program to filter from the list only those objects that are files and change their access permissions to755. Use Python’s in-built map and filter functionality for this problem. -
Implement the
reducefunctionality of Python using recursion.