Snap! is a block-based programming environment designed to teach the big ideas of computer science. It can be used to make all sorts of programs—image editing, text processing, games, data analysis, scientific computation, sound editing, robotics, and more.
A block is a piece of code. If you click a block, the computer will run the code.
Every Snap! program is made up of blocks like say hello
that tell the computer what to do. This block says hello to someone in a specified language.
say hello
block is a reporter block. (You can tell because it is rounded on the ends.) Reporters do a computation and then "report" the result, such as the reporter block below that is reporting the text "olá Ana."say hello
, accept inputs that customize what they do. Inputs appear as spaces you can edit. The say hello
block accepts two inputs: a name and a language. As you've seen, changing the inputs to a reporter can change the output it reports.say hello
block.fancy
block, and click the block to see what it reports. Does it look… Ƒᵃ𝐍𝓬у?fancy
block inside the first input slot of the say hello
block, replacing the name from before. Click the combined expression to see the output.