change sums=0
position
def vector(sample_list):
sums = 0
for item in sample_list:
square = item**2
sums = square + sums
magnitude = sums**0.5
return magnitude
0
solved What’s wrong in this python code? [closed]
change sums=0
position
def vector(sample_list):
sums = 0
for item in sample_list:
square = item**2
sums = square + sums
magnitude = sums**0.5
return magnitude
0
solved What’s wrong in this python code? [closed]