Sail E0 Webinar
Question
What is the output of the code shown below?l=[-2, 4]m=map(lambda x:x*2, l)print(m)
Options:
A .  [-4, 16]
B .  Address of m
C .  Error
D .  -416
Answer: Option B


The code shown above returns the address of m. Had we used the statement: print(list(m)), the output would have been: [-4, 16].



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers