Python: Difference between revisions

From wikiluntti
 
(7 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 8: Line 11:


Blender animation; Change size of objects
Blender animation; Change size of objects
[[Python onliners from terminal]]
[[Python oneliner to differentiate polynomial list]]
[[Plot Cansat or any csv data using Python]]


[[eOppi student grading]]
[[eOppi student grading]]
Line 14: 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 onliners from terminal

Python oneliner to differentiate polynomial list

Plot Cansat or any csv data using Python

eOppi student grading

Lidar data visualization

USDZ data visualization

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)]

NExt

NExt

NExt

NExt

NExt

NExt