arr = [1, 2, 3, 4]

# Using list comprehension
squared_list = [num**2 for num in arr]
print(squared_list)

# Result
# [1, 4, 9, 16]

1e6495c9d5ffb6727a065bec4719a3b763ac21fb
<mask token>

<mask token>
print(squared_list)

arr = [1, 2, 3, 4]
squared_list = [(num ** 2) for num in arr]
print(squared_list)

arr = [1, 2, 3, 4]

# Using list comprehension
squared_list = [num**2 for num in arr]
print(squared_list)

# Result
# [1, 4, 9, 16]
