+ 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))

13th May 2023, 9:19 AM
Paul-Henry Paltmann
Paul-Henry Paltmann - avatar
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
13th May 2023, 9:56 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 5
import math ?
13th May 2023, 9:49 AM
Bob_Li
Bob_Li - avatar