diff --git a/Python/numpi.py b/Python/numpi.py
index f57f8727eb407c472c248f47a1e9fcbc8f4e4417..38be06af49100880ef5099ebe7f53a154498cadd 100644
--- a/Python/numpi.py
+++ b/Python/numpi.py
@@ -17,5 +17,5 @@ i = arange(1,(NPTS+1),dtype=float64)
 pi = sum(0.5/((i-0.75)*(i-.25)))
 end_time = time.time()
 mflops = NPTS*5.0/(1.0e6*(end_time-start_time))
-print "NPTS = %d, pi = %f"%(NPTS,pi)
-print "time = %f, estimated MFlops = %f"%(end_time-start_time,mflops)
+print("NPTS = %d, pi = %f"%(NPTS,pi))
+print("time = %f, estimated MFlops = %f"%(end_time-start_time,mflops))
diff --git a/Python/pi.py b/Python/pi.py
index b7bc8d63df731415b6f08a7b0f6c92272de9d24d..94052a52e060ed2960b1ce5cd908072a6804eb7d 100755
--- a/Python/pi.py
+++ b/Python/pi.py
@@ -17,6 +17,6 @@ for i in range(1,(NPTS+1)):
    pi += a/((i-b)*(i-c))
 end_time = time.time()
 mflops = NPTS*5.0/(1.0e6*(end_time-start_time))
-print "NPTS = %d, pi = %f"%(NPTS,pi)
-print "time = %f, estimated MFlops = %f"%(end_time-start_time,mflops)
+print("NPTS = %d, pi = %f"%(NPTS,pi))
+print("time = %f, estimated MFlops = %f"%(end_time-start_time,mflops))