Program - Given a Python list. Turn every item of a list into its square


Topic: Program - Given a Python list. Turn every item of a list into its square

Solution

aList = [1, 2, 3, 4, 5, 6, 7]
aList =  [x * x for x in aList]
print(aList)



List all Python Programs