<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.bzz.ch/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.bzz.ch/feed.php">
        <title>BZZ - Modulwiki - modul:archiv:m319python:learningunits:lu09:loesungen</title>
        <description></description>
        <link>https://wiki.bzz.ch/</link>
        <image rdf:resource="https://wiki.bzz.ch/_media/wiki/logo.png" />
       <dc:date>2026-04-07T19:35:36+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/einfachefunktionen?rev=1711631267&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/erweitert?rev=1711631267&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/funktionen?rev=1711631267&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.bzz.ch/_media/wiki/logo.png">
        <title>BZZ - Modulwiki</title>
        <link>https://wiki.bzz.ch/</link>
        <url>https://wiki.bzz.ch/_media/wiki/logo.png</url>
    </image>
    <item rdf:about="https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/einfachefunktionen?rev=1711631267&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-28T13:07:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU09.L01 - Einfache Funktionenen</title>
        <link>https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/einfachefunktionen?rev=1711631267&amp;do=diff</link>
        <description>LU09.L01 - Einfache Funktionenen

Aufgabe 1


def function1():
    &quot;&quot;&quot;
    Function without params or return
    :return: None
    &quot;&quot;&quot;
    print(&#039;Function 1 is called&#039;)


def function2():
    &quot;&quot;&quot;
    Function with return
    :return: returns a number
    &quot;&quot;&quot;
    return 69


def function3(name):
    &quot;&quot;&quot;
    Welcomes the user with &quot;name&quot;
    :param name (str): Name of user to welcome
    :return: None
    &quot;&quot;&quot;
    print(f&#039;Welcome {name}&#039;)
    #print(&#039;Welcome &#039; + name)


def function4(number_to_sqau…</description>
    </item>
    <item rdf:about="https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/erweitert?rev=1711631267&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-28T13:07:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU09.L03 - Erweiterte Aufgaben</title>
        <link>https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/erweitert?rev=1711631267&amp;do=diff</link>
        <description>LU09.L03 - Erweiterte Aufgaben

Mehrere Return-Werte


import math


def div(dividend, divisor):
    &quot;&quot;&quot;
    Calculates the result and the rest of an integer division
    :param dividend: Dividend of the division
    :param divisor: Divisor of the division
    :return: Result of the divison as whole number and the rest of the division
    &quot;&quot;&quot;

    result = math.floor(dividend / divisor)
    rest = dividend % divisor

    return result, rest


def main():
    result, rest = div(34, 6)
    print(f…</description>
    </item>
    <item rdf:about="https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/funktionen?rev=1711631267&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-28T13:07:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU09.L02 - Inhalte in Methoden auslagern</title>
        <link>https://wiki.bzz.ch/modul/archiv/m319python/learningunits/lu09/loesungen/funktionen?rev=1711631267&amp;do=diff</link>
        <description>LU09.L02 - Inhalte in Methoden auslagern

1. Menüauswahl in Methode auslagern

Wir haben uns vorgenommen, dass wir Duplikate im Code vermeiden möchten. Im Programm talk_to_user listen wir dem User an zwei Stellen im Code seine Auswahlmöglichkeiten auf:</description>
    </item>
</rdf:RDF>
