diff --git a/img/funktionsaufruf.pdf b/img/funktionsaufruf.pdf new file mode 100644 index 0000000000000000000000000000000000000000..83c41ffe770f20bec3024893093c1fbbf771ccfb Binary files /dev/null and b/img/funktionsaufruf.pdf differ diff --git a/img/funktionsaufruf.png b/img/funktionsaufruf.png new file mode 100644 index 0000000000000000000000000000000000000000..c9831164381da9685d34927e0c5ad5b9b50494b2 Binary files /dev/null and b/img/funktionsaufruf.png differ diff --git a/img/funktionsaufruf.svg b/img/funktionsaufruf.svg new file mode 100644 index 0000000000000000000000000000000000000000..f286731bb39ea86d02b533804e5a2ecfd55b3765 --- /dev/null +++ b/img/funktionsaufruf.svg @@ -0,0 +1,140 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="210mm" + height="297mm" + viewBox="0 0 210 297" + version="1.1" + id="svg8" + inkscape:version="0.92.1 r15371" + sodipodi:docname="funktionsaufruf.svg"> + <defs + id="defs2" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="3.2975216" + inkscape:cx="140.70878" + inkscape:cy="832.00827" + inkscape:document-units="mm" + inkscape:current-layer="layer1" + showgrid="false" + inkscape:window-width="1920" + inkscape:window-height="1010" + inkscape:window-x="0" + inkscape:window-y="33" + inkscape:window-maximized="1" /> + <metadata + id="metadata5"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Ebene 1" + inkscape:groupmode="layer" + id="layer1"> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:100%;font-family:arial;-inkscape-font-specification:arial;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + x="37.485397" + y="75.505951" + id="text4487"><tspan + sodipodi:role="line" + id="tspan4485" + x="37.485397" + y="75.505951" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'Bitstream Vera Sans Mono';-inkscape-font-specification:'Bitstream Vera Sans Mono';stroke-width:0.26458332px"><tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'Bitstream Vera Sans Mono';-inkscape-font-specification:'Bitstream Vera Sans Mono';fill:#008000;fill-opacity:1" + id="tspan4495">print</tspan>(<tspan + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'Bitstream Vera Sans Mono';-inkscape-font-specification:'Bitstream Vera Sans Mono';fill:#ba2121;fill-opacity:1" + id="tspan4503">"Hello World!"</tspan>)</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#008000;stroke-width:0.16500001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 11.312991,78 5.4e-5,1.699018 L 23.305,79.699 23.304991,78" + id="path4505" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cccc" /> + <path + sodipodi:nodetypes="cccc" + inkscape:connector-curvature="0" + id="path4507" + d="m 11.312991,71.232527 5.4e-5,-1.699018 h 51.859001 v 1.699018" + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.16500001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + sodipodi:nodetypes="cccc" + inkscape:connector-curvature="0" + id="path4509" + d="m 26.454938,78 5.4e-5,1.699018 H 61.626 V 78" + style="fill:none;fill-rule:evenodd;stroke:#ba2121;stroke-width:0.16500001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:100%;font-family:arial;-inkscape-font-specification:arial;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + x="37.388248" + y="64.7658" + id="text4513"><tspan + sodipodi:role="line" + id="tspan4511" + x="37.388248" + y="64.7658" + style="stroke-width:0.26458332px">Anweisung</tspan></text> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:100%;font-family:arial;-inkscape-font-specification:arial;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + x="25.250715" + y="87.029861" + id="text4517"><tspan + sodipodi:role="line" + id="tspan4515" + x="25.250715" + y="87.029861" + style="stroke-width:0.26458332px;fill:#008000;fill-opacity:1">Funktionsname</tspan></text> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333311px;line-height:100%;font-family:arial;-inkscape-font-specification:arial;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + x="52.854553" + y="91.102562" + id="text4521"><tspan + sodipodi:role="line" + id="tspan4519" + x="52.854553" + y="91.102562" + style="stroke-width:0.26458332px;fill:#ba2121;fill-opacity:1">Argument</tspan></text> + <path + style="fill:none;fill-rule:evenodd;stroke:#ba2121;stroke-width:0.16500001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 47.709111,88.015152 43.080077,79.699" + id="path4523" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cc" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#008000;stroke-width:0.16500001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 16.652803,79.699 15.46522,83.980673" + id="path4525" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cc" /> + <path + style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.16500001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 37.242519,69.472026 V 66.48538" + id="path4527" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cc" /> + </g> +</svg> diff --git a/notebooks/seminar01.ipynb b/notebooks/seminar01.ipynb index 067a8fd2ae7759ee8d338248f6b2601551564921..d4837094b57a8b57e49e7649553c8a98a83960a0 100644 --- a/notebooks/seminar01.ipynb +++ b/notebooks/seminar01.ipynb @@ -79,7 +79,7 @@ "source": [ "### eine erste Anweisung\n", "\n", - "Der Grundbaustein eines jeden Programs ist die **Anweisung** - jedes Programm ist eine Folge von Anweisungen. Ein einfaches Programm mit nur einer Anweisung ist das berühmte *Hello World* (Exkurs: [Warum \"Hello World\"?](https://en.wikipedia.org/wiki/%22Hello,_World!%22_program)):" + "Der Grundbaustein eines jeden Programms ist die **Anweisung**, denn jedes Programm ist im Wesentlichen eine Folge von Anweisungen. Ein einfaches Programm mit nur einer Anweisung ist das berühmte *Hello World* (Exkurs: [Warum \"Hello World\"?](https://en.wikipedia.org/wiki/%22Hello,_World!%22_program)):" ] }, { @@ -95,10 +95,12 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "(Sie können das Programm aufrufen, indem Sie in die Box mit dem Programm klicken und dann auf den \"Play\"-Button oben klicken oder die Tastenkombination `STRG+ENTER` drücken oder \"Run Cells\" im \"Cell\"-Menü aufrufen.)\n", + "(Sie können das Programm aufrufen, indem Sie in den Block mit dem Programm klicken und dann auf den \"Play\"-Button oben klicken oder die Tastenkombination `STRG+ENTER` drücken oder \"Run Cells\" im \"Cell\"-Menü aufrufen.)\n", "\n", "Diese Anweisung ruft die **Funktion** `print` auf und übergibt ihr das **Argument** \"Hello World!\", was in diesem Fall eine **Zeichenkette** ist (das erkennen wir an den Gänsefüßchen). Die Argumente einer Funktion werden immer nach dem Namen der Funktion in Klammern übergeben. \n", "\n", + "\n", + "\n", "Das Ergebnis dieses Funktionsaufrufs ist, dass die Zeichenkette auf dem Bildschirm ausgegeben wird.\n", "\n", "Probieren Sie es nun selber und geben Sie eine Zeichenkette Ihrer Wahl aus, indem Sie die Zeichenkette in Gänsefüßchen der `print`-Funktion als Argument (zwischen den Klammern) übergeben: "