diff options
Diffstat (limited to 'Examples/python/contract/runme.py')
-rw-r--r-- | Examples/python/contract/runme.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Examples/python/contract/runme.py b/Examples/python/contract/runme.py index ce01e5a1d..ec0aceb45 100644 --- a/Examples/python/contract/runme.py +++ b/Examples/python/contract/runme.py @@ -7,15 +7,15 @@ import example x = 42 y = 105 g = example.gcd(x, y) -print "The gcd of %d and %d is %d" % (x, y, g) +print("The gcd of %d and %d is %d" % (x, y, g)) # Manipulate the Foo global variable # Output its current value -print "Foo = ", example.cvar.Foo +print("Foo = %s" % example.cvar.Foo) # Change its value example.cvar.Foo = 3.1415926 # See if the change took effect -print "Foo = ", example.cvar.Foo +print("Foo = %s" % example.cvar.Foo) |