Salome HOME
Merge Python 3 porting.
[modules/geom.git] / doc / salome / examples / point_coordinates.py
index a87cc887ff6a6aa019bcc3cb6eeffdb540fa4000..08f3ed133731dca46885a49f71d7d73c1ec91792 100644 (file)
@@ -18,8 +18,8 @@ tolerance = 1.e-07
 def IsEqual(val1, val2): return (math.fabs(val1 - val2) < tolerance)
 
 if IsEqual(coords[0], 15.) and IsEqual(coords[1], 23.) and IsEqual(coords[2], 80.):
-    print "All values are OK."
+    print("All values are OK.")
 else :
-    print "Coordinates of point must be (15, 23, 80), but returned (",
-    print coords[0], ", ", coords[1], ", ", coords[2], ")"
+    print("Coordinates of point must be (15, 23, 80), but returned (", end=' ')
+    print(coords[0], ", ", coords[1], ", ", coords[2], ")")
     pass