Python: Difference between revisions

From wikiluntti
Line 23: Line 23:
== Shorties ==
== Shorties ==


<code>
<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)]
</code>
</syntaxhighlight>
or
or
<code>
<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)]
</code>
</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 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

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