GithubHelp home page GithubHelp logo

boolean-expressions's Introduction

Lesson: Boolean Expressions

Part 1: Instruction

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.

Part 2: Exploration

  1. Open up the cs50 IDE.
  2. If you're not already in your unit_5 directory, cd into it.
  3. Make a new file called boolean.py, then open that file.
  4. Find your paper copy of the packet called "Boolean Expressions". (It looks like this)
  5. 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.
  6. 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, using exit() to get out the python interpreter and back to the regular command prompt.
  7. 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.

Part 3: Mastery Check

  1. Go back to this assignment in the google classroom and open up the attachment called "Mastery Check: Boolean Expressions".
  2. Complete the task described in there, then press 'Turn in'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.