8 lines
78 B
Python
8 lines
78 B
Python
num=[1,2,3,4]
|
|
result=[]
|
|
|
|
|
|
for x in num:
|
|
result.append(x**2)
|
|
|
|
print(result) |