Decision making and iteration are the key to robotics applications. Finally, we will begin to build some "intelligence" into the programs we will write in Python. In this lab you will learn to use loops and conditionals like while
, for
, if
, elif
and else
as well as Boolean Arguments.
The goal of this lab assignment is to introduce you to loops and conditionals so you may begin to build some complexity into your programs. 🚀
- Practice using
while
andfor
loops for iteration. - Begin to practice with conditionals.
- Build Boolean Arguments for robotic decision making.
- Utilize Git on your Raspberry Pi to make changes.
- conditionals
- loops
- iteration
for
while
if
else
elif
- Boolean Arguments
- indentation
- Complete the work in the notebook here (5.4.1-Python_Programs_Variables_Strings.ipynb) using the CoLab interface.
- Using GIT, add the repo to your raspberry pi.
- Using NANO and the terminal in your pi, create a new text file called "observations.txt" and write what you learned in this lab.
- Commit and Push the code to your repo so that I will be able to read your new text file from GitHub.