Skip to content

Commit

Permalink
Merge pull request sympy#10871 from hiamandeep/patch-6
Browse files Browse the repository at this point in the history
fixed print statement compatibilty for python3 and made code simpler
  • Loading branch information
moorepants committed Mar 23, 2016
2 parents b9e1f0b + 455590b commit 7104a4b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions examples/beginner/basic.py
Expand Up @@ -5,19 +5,18 @@
Demonstrates how to create symbols and print some algebra operations.
"""

import sympy
from sympy import pprint
from sympy import Symbol, pprint


def main():
a = sympy.Symbol('a')
b = sympy.Symbol('b')
c = sympy.Symbol('c')
a = Symbol('a')
b = Symbol('b')
c = Symbol('c')
e = ( a*b*b + 2*b*a*b )**c

print
print('')
pprint(e)
print
print('')

if __name__ == "__main__":
main()

0 comments on commit 7104a4b

Please sign in to comment.