Functions (It’s a Superpower) Verse 1 Functions—yeah, a set of instructions Give it a name, that’s the introduction You can call it anytime you choose No rewriting steps—less work to do Why write the same thing again and again When one good function does it better in the end? Pre-Chorus (spoken / playful) Heyyy—let me let you in on a little secret… Verse 2 You’ve already been using functions in Python Even before today, you’ve been relying on them When you call circle, what are you really doing? Running pre-written code someone else was coding All you see is the function name The steps inside? Hidden on purpose—no shame Not written by you, not written by me Designed that way so you can actually see Chorus You don’t need to know it all to begin That’s how programmers really win Focus on the problem, not every detail Less overload—more chance to prevail Verse 3 So now that you know this power’s been there Let’s use it ourselves—yeah, that’s only fair Think back to the snowman we built in class Three snowballs stacked—same steps, same task Why write that code three separate times When one clean function works just fine? Bridge (instructional, rhythmic) Here we go—let’s name the function def draw_snowball():—start the construction Indent your steps, one line at a time This part matters—Python’s strict with design Set the color white Pen down—ready to draw it right Begin fill Circle—there it is End fill Pen up—finish the biz Verse 4 Now call it—give Tracy a go-to Write the name: draw_snowball()—that’s all you do Give her a new go-to, move her down the screen Call it again—same function, new scene Chorus (repeat) Functions have a purpose Functions have power Write once, reuse—save time by the hour When you program smarter, not harder, you’ll see Functions are a superpower—trust me Outro You can build big things, piece by piece Break problems down—feel the stress release Name it. Write it. Call it again. That’s how real programmers think.



