Python: Difference between revisions
From wikiluntti
(→Theory) |
|||
Line 23: | Line 23: | ||
== Shorties == | == Shorties == | ||
< | <syntaxhighlight lang="python"> | ||
print [[x, y] for x in range(3) for y in range(3)] | print [[x, y] for x in range(3) for y in range(3)] | ||
</ | </syntaxhighlight> | ||
or | or | ||
< | <syntaxhighlight lang="python"> | ||
print [[x, y] for x in xrange(3) for y in xrange(3)] | print [[x, y] for x in xrange(3) for y in xrange(3)] | ||
</ | </syntaxhighlight> |
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)]