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:
http://www.sagemath.org
https://scipy.org
https://www.spyder-ide.org/
https://github.com/jupyter/qtconsole (ipython)
https://wiki.python.org/moin/NumericAndScientific
Examples:
https://pymotw.com/3/math/
https://pymotw.com/3/statistics/
http://rosettacode.org/wiki/Category:Mathematics
http://rosettacode.org/wiki/Category:Geometry
https://code.activestate.com/recipes/tags/math
Q&A: