Hardware Reference
In-Depth Information
Command
Description
return
The return keyword is used when a function is ready to
return a value.
time
Python module that provides various time-related functions,
such as sleep .
while
A while loop continually repeats if a given condition is true.
Achievement Unlocked: You can program in Python on your Raspberry Pi!
In the Next Adventure
The next chapter introduces you to the computer game Minecraft—more
speciically, you'll use the Minecraft Pi version created for use on the Raspberry
Pi. This special version of the game allows you to use Python programming code
to manipulate the Minecraft world in some way. For example, you will learn how
to post messages to the chat window, add different blocks to create structures,
and teleport across the Minecraft world in which your player is located.
 
Search WWH ::




Custom Search