0
0
Raspberry Piprogramming~5 mins

Python on Raspberry Pi - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Raspberry Pi?
Raspberry Pi is a small, affordable computer that you can use to learn programming and build projects.
Click to reveal answer
beginner
How do you run a Python program on Raspberry Pi?
You can run a Python program by opening the terminal and typing python3 filename.py.
Click to reveal answer
intermediate
What is GPIO on Raspberry Pi?
GPIO stands for General Purpose Input Output. It lets you connect and control electronic parts like LEDs and sensors using Python.
Click to reveal answer
intermediate
Which Python library is commonly used to control GPIO pins on Raspberry Pi?
The RPi.GPIO library is commonly used to control GPIO pins with Python on Raspberry Pi.
Click to reveal answer
beginner
How can you install a Python library on Raspberry Pi?
You can install a Python library using the terminal command pip3 install library_name.
Click to reveal answer
What command runs a Python 3 script named blink.py on Raspberry Pi?
Apython3 blink.py
Brun blink.py
Cexecute blink.py
Dstart blink.py
What does GPIO stand for?
AGeneral Program Input Output
BGeneral Purpose Input Output
CGeneral Purpose Internal Output
DGeneral Program Internal Output
Which Python library is used to control Raspberry Pi GPIO pins?
ARPi.GPIO
Bgpiozero
Cpyserial
Dnumpy
How do you install a Python package on Raspberry Pi?
Apython3 package_name
Binstall package_name
Cpip3 install package_name
Drun package_name
What is the main use of Raspberry Pi?
APlaying video games only
BReplacing smartphones
COnly for web browsing
DLearning programming and building projects
Explain how you would run a Python program on Raspberry Pi and what you need to do first.
Think about the steps from opening the terminal to running the script.
You got /4 concepts.
    Describe what GPIO pins are and how Python can interact with them on Raspberry Pi.
    Imagine controlling lights or sensors with code.
    You got /4 concepts.