QuestionQ54
Miscellaneous (List Comprehensions, Lambdas, Closures, I/O)What is the expected result of this code?
mytu = ('a', 'b', 'c')
m = tuple(map(lambda x: chr(ord(x) + 1), mytu))
print(m[-2])
- A an exception is raised
- B a
- C b
- D c
What is the expected result of this code?
mytu = ('a', 'b', 'c')
m = tuple(map(lambda x: chr(ord(x) + 1), mytu))
print(m[-2])
Community Discussion