<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://fginfo.tech-lab.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://fginfo.tech-lab.ch/feed.php">
        <title>https://fginfo.ksbg.ch Fachgruppe Informatik der KSBG - lehrkraefte:sbtsnr:python</title>
        <description></description>
        <link>https://fginfo.tech-lab.ch/</link>
        <image rdf:resource="https://fginfo.tech-lab.ch/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-05T16:40:28+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:sbtsnr:python:logic&amp;rev=1667582516&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://fginfo.tech-lab.ch/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>https://fginfo.ksbg.ch Fachgruppe Informatik der KSBG</title>
        <link>https://fginfo.tech-lab.ch/</link>
        <url>https://fginfo.tech-lab.ch/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:sbtsnr:python:logic&amp;rev=1667582516&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-11-04T17:21:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>logic</title>
        <link>https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:sbtsnr:python:logic&amp;rev=1667582516&amp;do=diff</link>
        <description>Entwicklung eines Programms zur Darstellung von logischen Operationen --&gt; Wahrheitstabellen


&quot;&quot;&quot;
Print of Logic tables
&quot;&quot;&quot;
import operator

anzahlVariablen = 2
x1 = False
x2 = False

for index in range(2**anzahlVariablen):
    print(
        f&quot;{index}  | {x2} {x1}   |   {x2 and x1}    {x2 or x1}     {x2 ^ x1}&quot;
    )
    x1 = not x1
    if (index + 1) % 2 == 0:
        x2 = not x2</description>
    </item>
</rdf:RDF>
