DS160123 map func

def sq(x):

return x**2

a = [2,4,6,8]

print(list(map(sq,a)))

1 Like

@shwetapatro42

Well done, keep going.