lehrkraefte:blc:informatik:glf4-20:simulation:python-mini-cheat-sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
lehrkraefte:blc:informatik:glf4-20:simulation:python-mini-cheat-sheet [2021/04/06 20:13]
Ivo Blöchliger
lehrkraefte:blc:informatik:glf4-20:simulation:python-mini-cheat-sheet [2021/04/06 20:14]
Ivo Blöchliger
Line 1: Line 1:
 +====== Python Micro-Cheat-Sheet ======
 +Ein ausführlicheres Cheat-Sheet gibt es [[lehrkraefte:blc:informatik:glf4-20:simulation:python-repe|hier]].
 ==== Wiederholung ==== ==== Wiederholung ====
 <code python> <code python>
Line 10: Line 12:
 liste=[]   # Leere Liste liste=[]   # Leere Liste
 for i in range(6):     # i von 0 bis und mit 5 for i in range(6):     # i von 0 bis und mit 5
-    liste.append(i*2)  # Das doppelte von i der Liste hinten hinzufügen+    liste.append(i*2)  # Das doppelte von i der Liste hinten anfügen
 print(liste)           # Ergibt [0,2,4,6,8,10] print(liste)           # Ergibt [0,2,4,6,8,10]
 </code> </code>
  • lehrkraefte/blc/informatik/glf4-20/simulation/python-mini-cheat-sheet.txt
  • Last modified: 2021/04/07 08:40
  • by Ivo Blöchliger