4 ms·
If you want to get into some simple code examples, you can do something where the kids don't need to understand exactly what the code means, but they can still
by oconnor663 7y ago
If you want to get into some simple code examples, you can do something where the kids don't need to understand exactly what the code means, but they can still understand what it's doing. For 5th graders, that could be something like "multiply all the numbers between 1 and N together." They could do it themselves for N = 3 or 4, and you could spend a couple minutes making it a race to N = 5 or something. Then you could have the computer do it for N = 1000 and have it fill up the screen with digits, which is kind of an "ooo ahh" moment. You can have the kids try to guess the name of that number. ("What's the largest number you know the name of?" is a fun game. You can take a minute to tell them how Google got its name.) Then you can set N to some value where it actually takes the computer a few seconds to finish working, and the kids can get a sense of how computers are very fast but not infinitely fast.