Data Sheet

Bonus chapter.indd 7 Trim size: 7.375 in × 9.1875 in October 24, 2017 7:20 PM
BC7BONUS CHAPTER 1 QUICK REFERENCE TABLES
Achievement Unlocked: You can create Turtle Graphics on your Raspberry Pi!
Commands Description
Additional Commands
for
for
loops are traditionally used when you have a piece of
code that you want to repeat x number of times. Example:
for i in [0,1,2,3,4,]
for i in range():
A for loop using the range() function that creates a list
containing numbers.
range()
The range() function generates a list of numbers in
progression.