Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
aa:lab:introduction-to-python [2020/10/05 13:40] claudiu.dorobantu [Useful data structures: dictionaries and tuples] |
aa:lab:introduction-to-python [2020/10/05 13:58] (current) claudiu.dorobantu [Python basics] |
||
---|---|---|---|
Line 48: | Line 48: | ||
**Remarks** | **Remarks** | ||
* although it is possible to add type annotations, in Python a function's signature only consists of the number of parameters and their names | * although it is possible to add type annotations, in Python a function's signature only consists of the number of parameters and their names | ||
- | * objects are generally passed as reference (hence, when printing ''x'', we see the list ''[1,3]'') (for details see: [[https://docs.python.org/3/reference/datamodel.html | Python data model]]) | + | * objects are generally passed as reference (hence, when printing ''x'', we see the list ''[1, 3]'') (for details see: [[https://docs.python.org/3/reference/datamodel.html | Python data model]]) |
* ''+'' denotes list concatenation | * ''+'' denotes list concatenation | ||