Thanks to visit codestin.com
Credit goes to github.com

Skip to content

examples/wordmath/seisseisdoze.py doesn't work with Python 3 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
s-celles opened this issue Jan 31, 2016 · 0 comments
Open

examples/wordmath/seisseisdoze.py doesn't work with Python 3 #13

s-celles opened this issue Jan 31, 2016 · 0 comments

Comments

@s-celles
Copy link
Member

python examples/wordmath/seisseisdoze.py
SEIS+SEIS=DOZE
%(s)d%(e)d%(i)d%(s)s+%(s)d%(e)d%(i)d%(s)d=%(d)d%(o)d%(z)d%(e)d
Traceback (most recent call last):
  File "examples/wordmath/seisseisdoze.py", line 38, in <module>
    main()
  File "examples/wordmath/seisseisdoze.py", line 35, in main
    "%(d)d%(o)d%(z)d%(e)d") % s
TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'

but with Python 2

$ python examples/wordmath/seisseisdoze.py
SEIS+SEIS=DOZE
4854+4854=9708
4864+4864=9728
4814+4814=9628
3643+3643=7286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant