Python: Difference between revisions
From wikiluntti
Line 22: | Line 22: | ||
== Shorties == | == Shorties == | ||
=== Lists === | |||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
Line 30: | Line 32: | ||
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> | </syntaxhighlight> | ||
=== NExt === | |||
=== NExt === | |||
=== NExt === | |||
=== NExt === | |||
=== NExt === | |||
=== NExt === |
Revision as of 18:38, 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
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)]