+ 3
x=[[0],[1]] list(map(str,x))==>> it convers....each item of x to a str(string) type... so [0] gets...'[0]' [1] gets...'[1]' list(map(str,x))=[ '[0]', '[1]' ] ' '.join(list(map(str, x))) = ' [0][1]' so now it has 7 length... as '[0][1]' has 6 length and while doing ' '.join..u r adding another space so 7 length
22nd Mar 2018, 6:20 PM
sayan chandra
sayan chandra - avatar