jumlah kuadrat dari semua elemen dalam daftar python
lst = [1,2,3,4]
squared_sum = sum(i**2 for i in lst)
squared_sum
Stormy Sloth
lst = [1,2,3,4]
squared_sum = sum(i**2 for i in lst)
squared_sum