How to multiply by int. number insdide tuples in python.? [duplicate]
list(map(lambda x: x**2, list(range(20))))
should do it, but for a simple task like this you should use a list comprehension without using map
at all:
[x**2 for x in range(20)]