Size: 2151
Comment:
|
← Revision 6 as of 2019-06-20 20:13:37 ⇥
Size: 2171
Comment: Diveintopython.net is no longer available. Replacing it for another mirror of the book.
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Read [[https://docs.python.org/3/tutorial/index.html|the official tutorial]] or [[http://www.diveintopython3.net|a book]] if you have no experience with Python. | Read [[https://docs.python.org/3/tutorial/index.html|the official tutorial]] or [[https://www.cmi.ac.in/~madhavan/courses/prog2-2012/docs/diveintopython3/|a book]] if you have no experience with Python. |
Line 4: | Line 4: |
* https://en.wikipedia.org/wiki/Floating-point_arithmetic#Accuracy_problems * https://docs.python.org/3/tutorial/floatingpoint.html * https://docs.python.org/3.6/library/decimal.html * https://www.sympy.org * http://mpmath.org |
* https://en.wikipedia.org/wiki/Floating-point_arithmetic#Accuracy_problems * https://docs.python.org/3/tutorial/floatingpoint.html * https://docs.python.org/3.6/library/decimal.html * https://www.sympy.org * http://mpmath.org |
Line 10: | Line 10: |
2. review [[https://www.tutorialspoint.com/python3/python_basic_operators.htm|the operators]] | 1. review [[https://www.tutorialspoint.com/python3/python_basic_operators.htm|the operators]] |
Line 12: | Line 12: |
3. be aware of the built-in functions: all, any, divmod, map, max, min, print, reverse, round, sum * https://docs.python.org/3/library/functions.html |
1. be aware of the built-in functions: all, any, divmod, map, max, min, print, reverse, round, sum * https://docs.python.org/3/library/functions.html |
Line 15: | Line 15: |
4. 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 |
1. 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 |
Line 22: | Line 22: |
5. read the [[https://docs.python.org/3/tutorial/controlflow.html|control flow section]] of the [[https://docs.python.org/3/tutorial/index.html|official tutorial]] | 1. read the [[https://docs.python.org/3/tutorial/controlflow.html|control flow section]] of the [[https://docs.python.org/3/tutorial/index.html|official tutorial]] |
Line 24: | Line 24: |
6. read about [[https://docs.python.org/3.6/tutorial/datastructures.html#list-comprehensions|list comprehensions]] | 1. read about [[https://docs.python.org/3.6/tutorial/datastructures.html#list-comprehensions|list comprehensions]] |
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:
read the control flow section of the official tutorial
read about list comprehensions
Investigate:
https://github.com/jupyter/qtconsole (ipython)
Examples:
Q&A: