← Lessons PP 4-6 ๐Ÿ Waggle Dance Lesson 76
๐Ÿ ๐Ÿฏ ๐ŸŒธ โœจ
๐Ÿ Universe
Honey Hive
Buzz buzz! ๐Ÿ Real bees teach their friends a WAGGLE DANCE โ€” many moves packed into ONE dance! In code, that is a FUNCTION: put many steps into ONE block, then use it again and again! Build Buzz's dance, press PACK, and watch ONE tap do ALL the moves! ๐Ÿฏ

๐Ÿ“ฆ What is a FUNCTION?

A FUNCTION is a block that packs many steps into ONE! You build the steps once โ€” โฌ†๏ธ fly, ๐ŸŒธ smell, โฌ†๏ธ fly โ€” then squish them into ONE golden DANCE block. Now every time you press it, ALL the steps happen in a row โ€” no rebuilding! Programmers write functions every day so their best code can be used again and again. One pack, endless dances! ๐Ÿ

๐Ÿ”— You already learned SEQUENCE (one after another), LOOPS (repeat again), VARIABLES (memory boxes), EVENTS (WHENโ€“DO) and PARALLELISM (all at once). Now learn FUNCTIONS โ€” pack steps into ONE reusable block! ๐Ÿ“ฆ
CHALLENGE 1 of 3
Build Buzz's first dance! Tap: โฌ†๏ธ Fly, ๐ŸŒธ Smell, โฌ†๏ธ Fly โ€” then PACK it!
๐ŸŽฏ Goal 1: build the dance โฌ†๏ธ ๐ŸŒธ โฌ†๏ธ and PACK it!
โœฆ โœฆ โœฆ โœฆ ๐ŸŒ™
๐Ÿฏ ๐ŸŒผ ๐ŸŒท ๐ŸŒธ ๐ŸŒป ๐Ÿ’ฎ ๐ŸŒบ ๐Ÿ
๐Ÿงฑ MOVES 0
๐ŸŒธ BLOOMED 0
๐Ÿฏ HONEY 0
Tap move blocks below to build Buzz's dance! ๐Ÿ‘‡
๐Ÿ Dance Builder โ€” build the steps!
MOVES tap a block to add that step to the dance
DANCE your steps in order โ€” tap a step to remove it
Tap move blocks to add stepsโ€ฆ
๐Ÿ WAGGLE DANCE!
1 move packed inside
๐Ÿ‘† Tap โฌ†๏ธ Fly, then ๐ŸŒธ Smell, then โฌ†๏ธ Fly โ€” then pack it!

๐Ÿ What You BUILT: The Waggle Dance

๐Ÿ Next time: a NEW coding adventure awaits at Code Explorer! Functions make you a real programmer โ€” come back tomorrow! โœจ
๐Ÿ

Waggle Dance!

Welcome to the Honey Hive! Buzz the Bee has a dance with many steps โ€” but pressing every step every time is SLOW! Pack all the steps into ONE golden DANCE block โ€” that is a FUNCTION! Build it once, use it forever! Ready, little bee? ๐Ÿฏ

๐Ÿ“ฆPack moves into ONE dance block!
โ™ป๏ธReuse it to fill the honey jar!
๐ŸŽจInvent YOUR OWN waggle dance!