Python: Difference between revisions
From wikiluntti
|  (→Theory) | |||
| (5 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
| Python introduction for pupils | Python introduction for pupils | ||
| Understanding Deep Learning. Python notebooks covering the whole text | |||
| https://udlbook.github.io/udlbook/ | |||
| == Theory == | == Theory == | ||
| Line 12: | Line 15: | ||
| [[Python oneliner to differentiate polynomial list]] | [[Python oneliner to differentiate polynomial list]] | ||
| [[Plot Cansat or any csv data using Python]] | |||
| [[eOppi student grading]] | [[eOppi student grading]] | ||
| Line 18: | Line 23: | ||
| [[USDZ data visualization]] | [[USDZ data visualization]] | ||
| == Shorties == | |||
| === Lists === | |||
| <syntaxhighlight lang="python"> | |||
| print [[x, y] for x in range(3) for y in range(3)] | |||
| </syntaxhighlight> | |||
| or | |||
| <syntaxhighlight lang="python"> | |||
| print [[x, y] for x in xrange(3) for y in xrange(3)] | |||
| </syntaxhighlight> | |||
| <syntaxhighlight lang="python"> | |||
|  [list(x) for x in product(range(6), repeat=3)] | |||
| </syntaxhighlight> | |||
| === NExt === | |||
| === NExt === | |||
| === NExt === | |||
| === NExt === | |||
| === NExt === | |||
| === NExt === | |||
Latest revision as of 20:58, 23 September 2024
Introduction
Python introduction for pupils
Understanding Deep Learning. Python notebooks covering the whole text https://udlbook.github.io/udlbook/
Theory
Animation; graph animation.
Blender animation; Change size of objects
Python oneliner to differentiate polynomial list
Plot Cansat or any csv data using Python
Shorties
Lists
print [[x, y] for x in range(3) for y in range(3)]
or
print [[x, y] for x in xrange(3) for y in xrange(3)]
 [list(x) for x in product(range(6), repeat=3)]

