Session 4: Variable=Remember

 

Chapter 2: Part 2
Variable=Remember


Icebreaker: What is your favorite animal movie character do you like the most?

Agenda:



Key Vocabulary:

Conditional: An element of code that only happens if something else is true. Conditionals are also called "if" statements, because "if" something happens, then something else will occur.
Logic: An organized way of thinking that makes sense to a computer.
Loop: A way of writing a piece of code that repeats multiple times. If I want to draw a squarer, I can write one loop that says "go straight, and then turn right" and have it repeat 4 times.
Variable: A container that a program uses to store and remember information. Variables can hold numbers, words, and even whether something is true or false. 

Read and Reflect:
You may answer these questions in the comment section below:

1. Give an example of a container you use to store things. What is its name? How is it similar to a variable? 
2. Think of an activity you do that requires you to repeat something. What does that look like as a loop?
3. What decisions do you make during the day? Can you write them as conditionals?
4. What are some ways that you already use the concepts from coding?

0 comments:

Post a Comment