Sail E0 Webinar
Question
What will be the output?names1 = ['Amir', 'Bala', 'Charlie']names2 = [name.lower() for name in names1] print(names2[2][0])
Options:
A .  None
B .  a
C .  b
D .  c
Answer: Option D


List Comprehension are a shorthand for creating new lists.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers