Python: Difference between revisions
From wikiluntti
(→Theory) |
(→Theory) |
||
Line 20: | Line 20: | ||
[[USDZ data visualization]] | [[USDZ data visualization]] | ||
== Shorties == | |||
<code> | |||
print [[x, y] for x in range(3) for y in range(3)] | |||
</code> | |||
or | |||
<code> | |||
print [[x, y] for x in xrange(3) for y in xrange(3)] | |||
</code> |
Revision as of 18:37, 21 August 2024
Introduction
Python introduction for pupils
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
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)]