diff options
Diffstat (limited to 'Examples/python/operator/runme.py')
-rw-r--r-- | Examples/python/operator/runme.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Examples/python/operator/runme.py b/Examples/python/operator/runme.py index ac48f2676..ee479f0b5 100644 --- a/Examples/python/operator/runme.py +++ b/Examples/python/operator/runme.py @@ -4,17 +4,17 @@ import example a = example.Complex(2, 3) b = example.Complex(-5, 10) -print "a =", a -print "b =", b +print("a = %s" % a) +print("b = %s" % b) c = a + b -print "c =", c -print "a*b =", a * b -print "a-c =", a - c +print("c = %s" % c) +print("a*b = %s" % (a * b)) +print("a-c = %s" % (a - c)) e = example.ComplexCopy(a - c) -print "e =", e +print("e = %s" % e) # Big expression f = ((a + b) * (c + b * e)) + (-a) -print "f =", f +print("f = %s" % f) |