Salome HOME
[PY3] 2to3 results
[modules/smesh.git] / doc / salome / examples / modifying_meshes_ex07.py
index 5dfa8da031f04e78a903d23e70e81369fdc9a157..93fa2d1cc95fa67079e5f570bb5881ad421ea89a 100644 (file)
@@ -3,13 +3,13 @@
 import SMESH_mechanic
 
 mesh = SMESH_mechanic.mesh
-print ""
+print("")
 
 # add node
 n1 = mesh.AddNode(50, 10, 0)
-if n1 == 0: print "KO node addition."
+if n1 == 0: print("KO node addition.")
 
 # add tetrahedron
 t1 = mesh.AddVolume([n1, 38, 39, 246])
-if t1 == 0: print "KO tetrahedron addition."
-else:       print "New Tetrahedron has been added with ID ", t1
+if t1 == 0: print("KO tetrahedron addition.")
+else:       print("New Tetrahedron has been added with ID ", t1)