Python Square Semua nomor dalam daftar
def square(list):
return [i ** 2 for i in list]
Ugliest Unicorn
def square(list):
return [i ** 2 for i in list]
def square(a):
squares = []
for i in a:
squares.append(i**2)
return squares