What is the output of print(list(map(str.lower, ['A', 'B', 'C']))) in Python?
print(list(map(str.lower, ['A', 'B', 'C'])))
Correct answer
B. ['a', 'b', 'c']
7 views
B. ['a', 'b', 'c']
7 views
map accepts any function, including str methods.
Asked in: Python Interview Advanced
https://docs.python.org/3/library/index.htmlNot sure why the answer is B? Ask here and get an explanation.