<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
    
    <url>
        <loc>https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/v/local-and-global-scope</loc>
        
        <xhtml:link rel="alternate" hreflang="en"
                    href="https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/v/local-and-global-scope" />
        
        <lastmod>2024-10-03T01:50:07.146156005Z</lastmod>
        
        <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
            <DataObject type="document" id="local-and-global-scope">
            <Attribute name="title">Local and global scope</Attribute>
            <Attribute name="description">Can I name the variable inside my function the same as a variable outside my function? Trace a function call to explore how the computer uses global and local scopes to separate regions of memory. Examine why functions use arguments and return values to pass information, instead of directly updating global variables. View the program used in this video at: https://www.khanacademy.org/python-program/fall-damage/6406651516469248</Attribute>
            <Attribute name="author">Kim Merrill</Attribute>
            <Attribute name="type">video</Attribute>
            
            </DataObject>
        </PageMap>
        
        <video:video>
            <video:thumbnail_loc>https://cdn.kastatic.org/ka_thumbnails_cache/412d9aee-f005-412d-bef8-7fe84f29652d_1280_720_base.png</video:thumbnail_loc>
            <video:title>Local and global scope</video:title>
            <video:description>Can I name the variable inside my function the same as a variable outside my function? Trace a function call to explore how the computer uses global and local scopes to separate regions of memory. Examine why functions use arguments and return values to pass information, instead of directly updating global variables. View the program used in this video at: https://www.khanacademy.org/python-program/fall-damage/6406651516469248</video:description>
            <video:player_loc>https://cdn.kastatic.org/ka-youtube-converted/AC0Ql1mOw4s.mp4/AC0Ql1mOw4s.mp4</video:player_loc>
            <video:duration>296</video:duration>
            <video:category>Function control flow</video:category>
        </video:video>
        
    </url>
    
    <url>
        <loc>https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/a/return-statements</loc>
        
        <xhtml:link rel="alternate" hreflang="en"
                    href="https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/a/return-statements" />
        
        <lastmod>2024-10-21T20:10:57.010605277Z</lastmod>
        
        <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
            <DataObject type="document" id="return-statements">
            <Attribute name="title">Return statements</Attribute>
            <Attribute name="description">Explore function definitions with different return patterns. Trace functions with multiple return statements and with no return statements.</Attribute>
            
            <Attribute name="type">article</Attribute>
            
            </DataObject>
        </PageMap>
        
    </url>
    
    <url>
        <loc>https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/v/nested-function-calls</loc>
        
        <xhtml:link rel="alternate" hreflang="en"
                    href="https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/v/nested-function-calls" />
        
        <lastmod>2026-03-29T06:04:57.873105323Z</lastmod>
        
        <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
            <DataObject type="document" id="nested-function-calls">
            <Attribute name="title">Nested function calls</Attribute>
            <Attribute name="description">What happens when a function calls another function? Trace how the computer uses stack frames to keep track of each function call&#39;s state. Explore how breaking down a big function into several smaller functions can improve readability and reusability. View the program used in this video at: https://www.khanacademy.org/python-program/intruder-detection/6531095526293504</Attribute>
            <Attribute name="author">Kim Merrill</Attribute>
            <Attribute name="type">video</Attribute>
            
            </DataObject>
        </PageMap>
        
        <video:video>
            <video:thumbnail_loc>https://cdn.kastatic.org/ka_thumbnails_cache/69903be9-4f2f-436b-8fe5-78d46466da08_1280_720_base.png</video:thumbnail_loc>
            <video:title>Nested function calls</video:title>
            <video:description>What happens when a function calls another function? Trace how the computer uses stack frames to keep track of each function call&#39;s state. Explore how breaking down a big function into several smaller functions can improve readability and reusability. View the program used in this video at: https://www.khanacademy.org/python-program/intruder-detection/6531095526293504</video:description>
            <video:player_loc>https://cdn.kastatic.org/ka-youtube-converted/H1oqBxBWRQ4.mp4/H1oqBxBWRQ4.mp4</video:player_loc>
            <video:duration>383</video:duration>
            <video:category>Function control flow</video:category>
        </video:video>
        
    </url>
    
    <url>
        <loc>https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/e/trace-function-calls-2</loc>
        
        <xhtml:link rel="alternate" hreflang="en"
                    href="https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/e/trace-function-calls-2" />
        
        <lastmod>2025-09-12T02:00:44.915137743Z</lastmod>
        
        <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
            <DataObject type="document" id="trace-function-calls-2">
            <Attribute name="title">Trace function calls</Attribute>
            <Attribute name="description">Trace control flow across function calls.</Attribute>
            <Attribute name="author">Nathaniel Shak</Attribute>
            <Attribute name="type">exercise</Attribute>
            
            </DataObject>
        </PageMap>
        
    </url>
    
    <url>
        <loc>https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/v/functions-program-design-deck-of-cards</loc>
        
        <xhtml:link rel="alternate" hreflang="en"
                    href="https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/v/functions-program-design-deck-of-cards" />
        
        <lastmod>2024-12-02T21:11:23.197431827Z</lastmod>
        
        <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
            <DataObject type="document" id="functions-program-design-deck-of-cards">
            <Attribute name="title">Program design: deck of cards</Attribute>
            <Attribute name="description">Code along with a software engineer in this worked example using functions and nested function calls. Apply functions with parameters and return values to deal a deck of cards. Design a set of function definitions that can draw hands, draw cards, and pick random suits. View the program used in this video at: https://www.khanacademy.org/python-program/functions-program-design-deck-of-cards/5630188991201280</Attribute>
            <Attribute name="author">Kim Merrill</Attribute>
            <Attribute name="type">video</Attribute>
            
            </DataObject>
        </PageMap>
        
        <video:video>
            <video:thumbnail_loc>https://cdn.kastatic.org/ka_thumbnails_cache/e8737b4b-9d4e-4ada-92e8-5d36e9c7a453_1280_720_base.png</video:thumbnail_loc>
            <video:title>Program design: deck of cards</video:title>
            <video:description>Code along with a software engineer in this worked example using functions and nested function calls. Apply functions with parameters and return values to deal a deck of cards. Design a set of function definitions that can draw hands, draw cards, and pick random suits. View the program used in this video at: https://www.khanacademy.org/python-program/functions-program-design-deck-of-cards/5630188991201280</video:description>
            <video:player_loc>https://cdn.kastatic.org/ka-youtube-converted/OxZJNHxTGeo.mp4/OxZJNHxTGeo.mp4</video:player_loc>
            <video:duration>325</video:duration>
            <video:category>Function control flow</video:category>
        </video:video>
        
    </url>
    
    <url>
        <loc>https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/pc/sweet-scores</loc>
        
        <xhtml:link rel="alternate" hreflang="en"
                    href="https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:playing-games-with-functions/x5279a44ae0ab15d6:function-control-flow/pc/sweet-scores" />
        
        <lastmod>2025-07-30T21:45:20.637470101Z</lastmod>
        
        <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
            <DataObject type="document" id="sweet-scores">
            <Attribute name="title">Challenge: Sweet scores</Attribute>
            <Attribute name="description">Practice nested function calls to implement the scoring system for a fruit-based card game.</Attribute>
            
            <Attribute name="type">challenge</Attribute>
            
            </DataObject>
        </PageMap>
        
    </url>
    
</urlset>
