CS42
Table of Contents
Book Index
Scratch ActiveCode
Instructor's Page
Edit Profile
Change Password
Register
Login
Navigation Help
Help for Instructors
About Runestone
Report A Problem
Page
Cool Demos
Cool Demos
¶
1
tot = 0
2
prod = 1
3
for i in range(10):
4
tot = tot + i
5
prod = prod * i
Edit code
<< First
< Back
Step 1 of 33
Forward >
Last >>
line that has just executed
next line to execute
Annotate this step
Program output:
Frames
Global variables
Objects
(codelens_question)
×
Check your understanding
What is tot right now?
Check Me
Continue
×
Scratch ActiveCode
1
2
3
4
5
Scratch Editor
Run
Save
Load