+ 1
Tuple Unpacking broken
I have the following code which is correct but the test does not accept it. Sololearn suggests that The code is missing a closing parenthesis but it seems correct. from math points = [ (12, 55), (880, 123), (64, 64), (190, 1024), (77, 33), (42, 11), (0, 90) ] dist = [] for el in points: m = math.sqrt((el[0]**2+el[1]**2)) dist.append(m) print(min(dist))
2 Answers
+ 4
Right, like Bob_Li said, the first line is incorrect:
from math -> what?? Error
import math -> right đ
from math import pi -> right đ
Change the first line
+ 5
import math ?