<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://192.168.180.206:8001/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="http://192.168.180.206:8001/feed.php">
        <title>wiki.niziak.spox.org - programming:python:syntax</title>
        <description></description>
        <link>http://192.168.180.206:8001/</link>
        <image rdf:resource="http://192.168.180.206:8001/_media/wiki:dokuwiki.svg" />
       <dc:date>2026-05-19T15:51:49+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://192.168.180.206:8001/programming:python:syntax:collections?rev=1735812138&amp;do=diff"/>
                <rdf:li rdf:resource="http://192.168.180.206:8001/programming:python:syntax:loop?rev=1707553139&amp;do=diff"/>
                <rdf:li rdf:resource="http://192.168.180.206:8001/programming:python:syntax:match?rev=1707235854&amp;do=diff"/>
                <rdf:li rdf:resource="http://192.168.180.206:8001/programming:python:syntax:strings?rev=1709275594&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://192.168.180.206:8001/_media/wiki:dokuwiki.svg">
        <title>wiki.niziak.spox.org</title>
        <link>http://192.168.180.206:8001/</link>
        <url>http://192.168.180.206:8001/_media/wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://192.168.180.206:8001/programming:python:syntax:collections?rev=1735812138&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-01-02T10:02:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>collections</title>
        <link>http://192.168.180.206:8001/programming:python:syntax:collections?rev=1735812138&amp;do=diff</link>
        <description>collections

	*  List [ “abc”, 1, True ]
		*  ordered, indexed, allow duplicate items
		*  mutable
		*  list item can be any type
		*  len()

	*  Tuple ( 1, “A”, True)
		*  ordered, indexed, allow duplicate items
		*  immutable
		*  tuple item can be any type</description>
    </item>
    <item rdf:about="http://192.168.180.206:8001/programming:python:syntax:loop?rev=1707553139&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-10T08:18:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>loops</title>
        <link>http://192.168.180.206:8001/programming:python:syntax:loop?rev=1707553139&amp;do=diff</link>
        <description>loops

Use for loops where number of iterations is known. Use while otherwise.


for _ in range(0, 100):
  if component_ready():
    break</description>
    </item>
    <item rdf:about="http://192.168.180.206:8001/programming:python:syntax:match?rev=1707235854&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-06T16:10:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>match case</title>
        <link>http://192.168.180.206:8001/programming:python:syntax:match?rev=1707235854&amp;do=diff</link>
        <description>match case


match expression_to_match:
    case pattern1:
        # Code block for pattern1
    case pattern2:
        # Code block for pattern2
    ...
    case patternN:
        # Code block for patternN
    case _:
        # Catch-all, default code block (optional)</description>
    </item>
    <item rdf:about="http://192.168.180.206:8001/programming:python:syntax:strings?rev=1709275594&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-01T06:46:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>strings</title>
        <link>http://192.168.180.206:8001/programming:python:syntax:strings?rev=1709275594&amp;do=diff</link>
        <description>strings

access last character


last_char = mystring[-1]
last_char = mystring[len(mystring)-1]
last_3chars = mystring[-3:]
first_2chars = mystring[0:1]
skip_3chars = mystring[3:]


last word


words = mystring.split(&#039; &#039;)
last_word = words[-1]</description>
    </item>
</rdf:RDF>
