0

Can someone please help me to understand this problem well?

x=[3,4], (4,7),{7,11,7,11} s=map(sum,x) Print(sum(s))

19th Jul 2020, 7:50 AM
Mohini Yadav
Mohini Yadav - avatar
3 Respuestas
+ 2
nihillum Bahha🐧 ~ swim ~ thank you so much guys for explaining in such a simple and effective way. I got all the doubts clear..
22nd Jul 2020, 5:00 AM
Mohini Yadav
Mohini Yadav - avatar
+ 1
just a tip in addition to the above answers. try plug in a print function and a type of to debug the code. something like : x=[3,4], (4,7),{7,11,7,11} print(x) print(type(x)) s=map(sum,x) print(s) # map object print(sum(s))
19th Jul 2020, 8:19 AM
Bahhaⵣ
Bahhaⵣ - avatar