There are 3 practical questions for python programming language which are not difficult i hope someone can help me

import math
def closestTime(tr, pt):
mind=100000
time=-1
for t in tr:
#This formula calculates the euclidean distance
d=math.sqrt((t[0]-pt[0])*(t[0]-pt[0])+(t[1]-pt[1])*(t[1]-pt[1]))
#checks…
Engineering Technology