Watch the following video to help you get started on this lesson. Take notes on your copy of the slides so you can refer back to the information later.
- Open up the cs50 IDE.
- If you're not already in your
unit_5
directory,cd
into it. - Make a new file called
boolean.py
, then open that file. - Find your paper copy of the packet called "Boolean Expressions". (It looks like this)
- Work on that packet, writing all the mentioned code in your new file, and running the file when you need to. IMPORTANT: As you move along in the packet, comment out code that you don't need anymore, don't delete it! When you are done with the packet, your python file should contain all of the code mentioned in the packet.
- When the packet tells you to write code in "the interpreter", go to the command line and just type
python
. This will give you a>>>
prompt, usingexit()
to get out the python interpreter and back to the regular command prompt. - When you're done with the packet, compare your answers to the sample solutions (on paper in the classroom). Update your paper (don't erase) with new things you learn from this comparison.
- Go back to this assignment in the google classroom and open up the attachment called "Mastery Check: Boolean Expressions".
- Complete the task described in there, then press 'Turn in'.