Read the official tutorial or a book if you have no experience with Python.
- be aware that there are accuracy issues with floating-point arithmetic
review the operators
- be aware of the built-in functions: all, any, divmod, map, max, min, print, reverse, round, sum
- be aware of the included modules:
https://docs.python.org/3.6/library/math.html
https://docs.python.org/3.6/library/statistics.html
https://docs.python.org/3.6/library/decimal.html
https://docs.python.org/3.6/library/fractions.html
https://docs.python.org/3.6/library/itertools.html
read the control flow section of the official tutorial
read about list comprehensions
Investigate:
https://github.com/jupyter/qtconsole (ipython)
https://wiki.python.org/moin/NumericAndScientific
Examples:
http://rosettacode.org/wiki/Category:Mathematics
http://rosettacode.org/wiki/Category:Geometry
https://code.activestate.com/recipes/tags/mathematics/
https://code.activestate.com/recipes/tags/math
https://stackoverflow.com/questions/tagged/python+math
Q&A: