Question: Q2: List Comprehension vs. Map/Filter + Lambda (15 Points) For each question below, use both list comprehension and Python map ( ) or fitter( )

Q2: List Comprehension vs. Map/Filter + Lambda (15 Points) For each question below, use both list comprehension and Python map ( ) or fitter( ) function. Use \%\%timeit magic command to profile the computation time. Make some comments about the profiling results. Q2.2 For each of the name in the list, print only the names with less than 7 letters. In [4]: names = ["olumide", "akinremi", "alex", "josiah", "john", "temidayo", "emily", "omoseun"] In [5]: In [6]: \#Use filter() function In [ ]: \#\# Profile the computation time for both methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
