If you use python 3.x then the syntax is: print("Covariance",covariance()) print() is a function in python3