lehrkraefte:blc:informatik:glf20:programmieren:io-and-vars

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:blc:informatik:glf20:programmieren:io-and-vars [2020/09/18 08:30]
Ivo Blöchliger
lehrkraefte:blc:informatik:glf20:programmieren:io-and-vars [2020/09/23 08:45] (current)
Ivo Blöchliger
Line 1: Line 1:
 ====== Das erste Programm ====== ====== Das erste Programm ======
 +
 +Bevor Sie beginnen, ordnen Sie Ihre Fenster (Browser und TigerJython) so an, dass es für Sie praktisch zum arbeiten ist, z.B. indem Sie die Fenster in die Mitte vom rechten oder linken Rand ziehen oder mit Alt-Tab hin- und her wechseln.
 +
 +[[https://fginfo.ksbg.ch/~ivo/videos/informatik/python/fenster-managment.mp4|🎞▶️ Erklärvideo]] oder auch auf [[https://web.microsoftstream.com/video/18eb7131-8f25-4863-b239-07d0f962e373|Stream]]
 +
 <WRAP todo> <WRAP todo>
 Starten Sie TigerJython und geben Sie folgendes Programm ein (erst mal von Hand, ohne Copy-Paste): Starten Sie TigerJython und geben Sie folgendes Programm ein (erst mal von Hand, ohne Copy-Paste):
Line 9: Line 14:
 Führen Sie das Programm aus. Führen Sie das Programm aus.
  
-[[https://fginfo.ksbg.ch/~ivo/videos/informatik/python/tiger-jython-hello-world.mp4|Erklär-Video dazu]] und noch auf [[https://web.microsoftstream.com/video/1748a15f-4eac-4bf6-b2ec-fccc51383855|Stream]]+[[https://fginfo.ksbg.ch/~ivo/videos/informatik/python/tiger-jython-hello-world.mp4|🎞▶️Erklärvideo dazu]] und noch auf [[https://web.microsoftstream.com/video/1748a15f-4eac-4bf6-b2ec-fccc51383855|Stream]]
 </WRAP> </WRAP>
 ===== Ausgabe und Arithmetische Ausdrücke ===== ===== Ausgabe und Arithmetische Ausdrücke =====
Line 95: Line 100:
 </code> </code>
 Erweitern Sie Ihr Programm so, dass Sie in der ersten Zeile mit einer Variablen die Grösse (Anzahl kleiner Quadrätchen) des Text-Quadrats beliebig wählen können. Erweitern Sie Ihr Programm so, dass Sie in der ersten Zeile mit einer Variablen die Grösse (Anzahl kleiner Quadrätchen) des Text-Quadrats beliebig wählen können.
 +
 +[[https://fginfo.ksbg.ch/~ivo/videos/informatik/python/tiger-jython-text-gitter-quadrat.mp4|🎞▶️ Erklärvideo]] oder auch auf [[https://web.microsoftstream.com/video/7e14fc58-02f0-41fc-8d79-ce4c0a33dc4a|Stream]]
 +
 </WRAP> </WRAP>
  
Line 146: Line 154:
 [[https://docs.python.org/2/library/stdtypes.html#string-formatting|Hier noch die offizelle Dokumentation]]. In Python3 wird zwar noch eine andere Variante mit ''.format()'' empfohlen. Die hier präsentierte Variante ist aber so in fast allen Programmiersprachen möglich. [[https://docs.python.org/2/library/stdtypes.html#string-formatting|Hier noch die offizelle Dokumentation]]. In Python3 wird zwar noch eine andere Variante mit ''.format()'' empfohlen. Die hier präsentierte Variante ist aber so in fast allen Programmiersprachen möglich.
  
-[[https://fginfo.ksbg.ch/~ivo/videos/informatik/python/tiger-jython-format-modulo.mp4|Erklärvideo dazu]] und dasselbe auf [[https://web.microsoftstream.com/video/83e8e81f-b732-4ecf-b978-0f6bb5cc6490|Stream]]+[[https://fginfo.ksbg.ch/~ivo/videos/informatik/python/tiger-jython-format-modulo.mp4|🎞▶️Erklärvideo dazu]] und dasselbe auf [[https://web.microsoftstream.com/video/83e8e81f-b732-4ecf-b978-0f6bb5cc6490|Stream]]
 </WRAP> </WRAP>
  
Line 177: Line 185:
 ===== Quiz ===== ===== Quiz =====
  
-<quizlib id="quiz" rightanswers="['12', '42', ['a1'],'007', '0.67']" submit="Check Answers"> +[[:io-and-vars:quiz|Quiz]] 
-    <question title="Was ist die Ausgabe von &lt;pre&gt;print(5+1*8-1)&lt;/pre&gt;" type="text"></question> +
-    <question title="Was ist die Ausgabe von &lt;pre&gt;print((5+1)*(8-1))&lt;/pre&gt;" type="text"></question> +
-    <question title='Welche Ausgabe produziert &lt;pre&gt;print(("a"*3+"b"*2)*2)&lt;/pre&gt;' type="radio">aaabbbb|aaabbaaabb|a3b22|("a"*3+"b"*2)*2</question>     +
-    <question title="Was ist die Ausgabe von &lt;pre&gt;print(&quot;%03d&quot; % 7.92)&lt;/pre&gt;" type="text"></question> +
-    <question title="Was ist die Ausgabe von &lt;pre&gt;a=2&#xa;b=3&#xa;print(&quot;%.2f&quot; % (a/b))&lt;/pre&gt;" type="text"></question>     +
-</quizlib>+
  
 ====== Lösungsvorschläge ====== ====== Lösungsvorschläge ======
  • lehrkraefte/blc/informatik/glf20/programmieren/io-and-vars.1600410613.txt.gz
  • Last modified: 2020/09/18 08:30
  • by Ivo Blöchliger