0
python-- please explain the logic.
def to_upper(k): return k.upper() x=['ab','cd'] print(list(map(upper,x)))
3 Answers
+ 5
Isn't your code supposed to look like this (the last line is different):
def to_upeer(k):
return k.upper()
x=['ab','cd']
print(list(map(to_upeer, x)))
0
yes x should be there. thanks. typo. can u explain now? maps and whole logic
0
thanks



