Commit f1bd9dd7 authored by goekce's avatar goekce
Browse files

mult:

- typo
- create standalone file from appendix as faq
- consolidate slides
parent ed9fc8e3
Pipeline #12626 passed with stage
in 11 minutes and 3 seconds
......@@ -22,7 +22,7 @@ build:
- cd /home/build
- sudo -u build pikaur -S --noconfirm pandoc-bin
- sudo -u build pikaur -S --noconfirm pandoc-plantuml-filter-py-git
- pacman -S --noconfirm plantuml # workaround: dep. missing for pandoc-plantuml-filter-py-git
- pacman -S --noconfirm plantuml # workaround: dep. missing for pandoc-plantuml-filter-py https://aur.archlinux.org/packages/pandoc-plantuml-filter-py
- cd $CI_PROJECT_DIR
- make
- pacman -S python-pip python-virtualenv --noconfirm
......
......@@ -256,7 +256,7 @@ x = "I'm dancing."
# lists
how do we define `lists`s?
how do we define a `list`?
. . .
......@@ -283,6 +283,8 @@ which list operators do you know?
- `+`
- `*`
- `x < y`
- `x == y`
# list functions
......@@ -307,15 +309,6 @@ x.extend(y) # ?
- `[1, 2, [3, 4] ]`
- `[1, 2, 3, 4]`
# list operators
which list operators do you know?
. . .
- `x + y`
- `x < y`
- `x == y`
# list functions
......@@ -398,7 +391,7 @@ x = f'there are {count} {item.lower()}s'`
# loops
which loop keywords do you know?
which keywords related to loops do you know?
. . .
......@@ -498,17 +491,3 @@ which Python modules do you know?
- `math`
- `datetime`
- [Brief tour of the standard library](https://docs.python.org/3/tutorial/stdlib.html)
# Appendix
what is the difference between an interpreted language and a compiled?
. . .
In general, an interpreted language is compiled to [bytecode](https://en.wikipedia.org/wiki/Bytecode)(in Python, these are `.pyc` files), which is run on a *virtual machine*. In contrast, compilation creates *machine code* (like assembly).
Interpreted languages tend to have more convenient features for the programmer and compiled languages tend to be faster. Nevertheless it is also possible to make Python faster by using a [just-in-time compiler](https://en.wikipedia.org/wiki/Just-in-time_compilation) like [PyPy](https://www.pypy.org).
If you care about productivity it is fine to use Python. If you care about runtime (and energy consumption) you should use C, C++, etc.
Note that .pyc files are bytecode
#
what is the difference between an interpreted and a compiled language ?
. . .
In general, an interpreted language is compiled to [bytecode](https://en.wikipedia.org/wiki/Bytecode)(in Python, these are `.pyc` files), which is run on a *virtual machine*. In contrast, compilation creates *machine code* (like assembly).
Interpreted languages tend to have more convenient features for the programmer and compiled languages tend to be faster. Nevertheless it is also possible to make Python faster by using a [just-in-time compiler](https://en.wikipedia.org/wiki/Just-in-time_compilation) like [PyPy](https://www.pypy.org).
If you care about productivity it is fine to use Python. If you care about runtime (and energy consumption) you should use C, C++, etc.
Note that .pyc files are bytecode
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment