squareroot of all num in a list python code example Example: python square all numbers in list def square(list): return [i ** 2 for i in list]