X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fexample3;h=804bf013c37bb16cad46b6df714b99610d26d9e2;hb=507c19e30d7d99d2055a6dbd62fad2104dcdf9f4;hp=95e18e8e7cca162695a9fed10691cc751b63c5e6;hpb=288dc1c84630e521220d796b7c88c518f34856d5;p=modules%2Fkernel.git diff --git a/doc/salome/examples/example3 b/doc/salome/examples/example3 index 95e18e8e7..804bf013c 100644 --- a/doc/salome/examples/example3 +++ b/doc/salome/examples/example3 @@ -13,16 +13,16 @@ A.Add(625.1e+2) A.Add(0.928e+100) A.Add(83.287) -print "initial values ",A.Value(1), A.Value(2), A.Value(3), A.Value(4) +print("initial values ",A.Value(1), A.Value(2), A.Value(3), A.Value(4)) A.Remove(3) -print "after remove ", A.Value(1), A.Value(2), A.Value(3) +print("after remove ", A.Value(1), A.Value(2), A.Value(3)) A.ChangeValue(2,76.265) -print "after second item change", A.Value(1), A.Value(2), A.Value(3) +print("after second item change", A.Value(1), A.Value(2), A.Value(3)) if A.Length() != 3: - print "Error : wrong length of SequenceOfReal" + print("Error : wrong length of SequenceOfReal") if A.Value(1) != 0.0293 or A.Value(2) != 76.265 or A.Value(3) != 83.287: - print "Error : wrong value of AttributeSequenceOfReal" + print("Error : wrong value of AttributeSequenceOfReal") # save / restore study #================================= @@ -53,8 +53,8 @@ if res == 0 or A == None: A = A._narrow(SALOMEDS.AttributeSequenceOfReal) if A.Length() != 3: - print "Error : wrong length of SequenceOfReal" + print("Error : wrong length of SequenceOfReal") if A.Value(1) != 0.0293 or A.Value(2) != 76.265 or A.Value(3) != 83.287: - print "Error : wrong value of AttributeSequenceOfReal" -print "after restoring ", A.Value(1), A.Value(2), A.Value(3) + print("Error : wrong value of AttributeSequenceOfReal") +print("after restoring ", A.Value(1), A.Value(2), A.Value(3))