0

List error,

#I'm not getting why it's giving me this error, i'm using jupyter notebook therefore i was hoping for it to show me the list as so, i already tried changing the name since "list" as so i get is a buil in function but still gives me such error. Would someone please mind to explain? Thanks in advance nums = ["abc","def","hij"] list(map(lambda l:l[0],nums)) TypeError: 'list' object is not callable

4th Nov 2019, 9:59 PM
Hugo Bustamante
Hugo Bustamante - avatar
2 Answers
+ 1
It doesn't give any errors, are you sure you wrote it exactly like this ?
4th Nov 2019, 10:02 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
now, that's weird, yes i copied it from my notebook
4th Nov 2019, 10:11 PM
Hugo Bustamante
Hugo Bustamante - avatar