lehrkraefte:snr:informatik:python:loops

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
lehrkraefte:snr:informatik:python:loops [2021/09/15 18:41]
Olaf Schnürer [Bonus-Aufgaben]
lehrkraefte:snr:informatik:python:loops [2021/09/22 14:41] (current)
Olaf Schnürer [Verschachtelte for-Schleifen]
Line 100: Line 100:
 <code python>     <code python>    
 for i in range(3): for i in range(3):
-    print("Äußere Schleife beginnt, Laufvariable i = %d." % i)+    print("Äussere Schleife beginnt, Laufvariable i = %d." % i)
     for j in range(3):     for j in range(3):
         print("  Innere Schleife beginnt, Laufvariable j = %d." % j)         print("  Innere Schleife beginnt, Laufvariable j = %d." % j)
         print("  (i,j) = (%d, %d) " % (i,j))         print("  (i,j) = (%d, %d) " % (i,j))
     print("  Innere Schleife abgearbeitet."     print("  Innere Schleife abgearbeitet."
-print("Äußere Schleife abgearbeitet."+print("Äussere Schleife abgearbeitet."
 </code> </code>
  
Line 161: Line 161:
 </WRAP> </WRAP>
  
 +2dNP bis hier 22.09.2021
 ===== Bonus-Aufgaben ===== ===== Bonus-Aufgaben =====
  
  • lehrkraefte/snr/informatik/python/loops.1631724078.txt.gz
  • Last modified: 2021/09/15 18:41
  • by Olaf Schnürer