Problem with the print statement in Python [duplicate]

  python

What it’s wrong with this code?

from math import*

def euclidean_distance(x,y):

    return sqrt(sum(pow(a-b,2) for a, b in zip(x, y)))

print euclidean_distance([0,3,4,5],[7,6,3,-1])

This is a Python code that I’m running under Windows.

I don’t see anything wrong, but, despite of that, the Python interpreter produce a syntax error in the print statement.

Source: Python Questions

LEAVE A COMMENT