python 3 compatibility for examples/*.py files

add from __future__ import
print statement -> print() function
xrange -> range
map() -> list(map())
range() -> list(range())
StandardError -> Exception
This commit is contained in:
danielque
2023-08-10 13:25:36 +02:00
parent 597e606bde
commit 539fd060c2
35 changed files with 106 additions and 88 deletions

View File

@ -9,4 +9,4 @@ dm.extra(b)
g = gl(dm)
v = vcr(g)
print "all done ... type CTRL-D to exit Pizza.py"
print("all done ... type CTRL-D to exit Pizza.py")