ExercisesPythonGrPA 5 ComprehensionsGrPA 5 ComprehensionsWeek 4 GrPAGrPA 5 Comprehensions 👨💻 QUESTIONTEST CASESSOLUTIONInstructionsQuestion ❓ Implement the below functions as per the docstrings.Python Code 🐍 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 def sum_of_squares(numbers): ... def total_cost(cart): ... def abbreviation(sentence): ... def palindromes(words): ... def all_chars_from_big_words(sentence): ... def flatten(lol): ... def unflatten(items, n_rows): ... def make_identity_matrix(m): ... def make_lower_triangular_matrix(m): ...Python Code Solution ✅ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 def sum_of_squares(numbers): return sum([x**2 for x in numbers]) def total_cost(cart): return sum([qty * price for qty, price in cart]) def abbreviation(sentence): return ''.join([word[0].upper() for word in sentence.split()]) + '.' def palindromes(words): return [w for w in words if w == w[::-1]] def all_chars_from_big_words(sentence): return set(''.join([w.lower() for w in sentence.split() if len(w) > 5])) def flatten(lol): return [item for sublist in lol for item in sublist] def unflatten(items, n_rows): n_cols = len(items) // n_rows return [items[i*n_cols:(i+1)*n_cols] for i in range(n_rows)] def make_identity_matrix(m): return [[1 if i == j else 0 for j in range(m)] for i in range(m)] def make_lower_triangular_matrix(m): return [[i+1 if j <= i else 0 for j in range(m)] for i in range(m)]GrPA 4 Loops Application GradedGrPA 5 min, max, sorted, groupbyMore QuestionsGrPA 1 Basic Collections Week 4 GrPAGradedGrPA 1 Basic Collections 👨💻 QUESTIONTEST CASESSOLUTION Instructions Question ❓ Implement the below functions as per the docstrings.GrPA 1 Dictionary Basics Week 5 GrPAGradedGrPA 1 Dictionary Basics 👨💻 QUESTIONTEST CASESSOLUTION Instructions Question ❓ 🫵 You are tasked with implementing a series of functions that perform various operations on dictionaries in Python. These functions will manipulate dictionaries that represent fruit prices and perform different operations as specified.GrPA 1 Numbers (Arithemetic) Week 1 GrPAGradedGrPA 1 Numbers (Arithemetic) Graded 👨💻 QUESTIONTEST CASESSOLUTION Change in eligibility criteria to write oppe1 exam: A1>=40/100 AND A2>=40/100 AND A3>=40/100 AND A4>=40/100GrPA 1 While Loop Week 3 GrPAGradedGrPA 1 While Loop Graded 👨💻 QUESTIONTEST CASESSOLUTION Instructions Question ❓ Implement different parts of a multi-functional program based on an initial input value. Each part of the program will handle various tasks related to accumulation, filtering, mapping, and combinations of these operations. None of the tasks should use explicit loops for definite repetitions, and the program should handle indefinite inputs gracefully.GrPA 2 Dictionary Application Week 5 GrPAGradedGrPA 2 Dictionary Application 👨💻 QUESTIONTEST CASESSOLUTION Instructions Question ❓ Implement the below functions as per the docstrings.GrPA 2 For Loop Week 3 GrPAGradedGrPA 2 For Loop Graded 👨💻 QUESTIONTEST CASESSOLUTION Instructions Question ❓ Write a multi functional program that takes input task from standard input and does the corresponding taks accordingly. Note that the useage of for loop is not allowed in this exercise.GrPA 2 Operations on list and set Week 4 GrPAGradedGrPA 2 Operations on list and set 👨💻 QUESTIONTEST CASESSOLUTION Instructions Question ❓ Implement the below functions as per the docstrings.GrPA 3 Composing functions Week 5 GrPAGradedGrPA 3 Composing functions 👨💻 QUESTIONTEST CASESSOLUTION Instructions Question ❓ Implement all the given functions that are used to solve the below problems.