Professional Documents
Culture Documents
Variables and Loops
Variables and Loops
▶ Algorithm
▶ Loops:
▸ Finite
▸ Infinite
▸ Conditional
▶ Operators:
▸ Comparison
▸ Logical
STUDY
“Repeat name”
Exercise
“Repeat name”
Question
What Scratch blocks Greeting
does a sprite use to
speak?
STUDY
Exercise
“Repeat name”
Question
Greeting
What should be
here?
STUDY
Exercise
“Repeat name”
Question
Greeting
Name
Where does the
cat get different
names?
How to remember a name?
Name
question, “What’s
your name?”
Age
What’s your
name?
______
____
How to remember a
name?
Name
of variable
Age Name
Kepler Value
______
of variable
____
How to remember a name?
Variable!
Write the answer
Create the
to the question Find the
Name
into the Name Name variable
variable
variable
Name
Kepler
STUDY
Variables in Scratch
Build a program to
talk with the cat in
the exercise
“Greeting”.
A variable can change its value many times.
STUDY
Exercise
Country of
minerals
Exercise 1
Exercise 2
Exercise
★ What is a variable?
★ Why do we need variables?