OIM3600 - Computer Science for Business Students

Session 07 (9/18)

contain

Today's Agenda

Welcome/News/Announcements

  • Please update your GitHub profile name to your real name.
  • Communications:
    • Slack - for debugging, clarifications, real-time discussion, casual chat, etc.
    • Email - specify course # in subject title, e.g. "OIM3600: GitHub settings"
    • Meet with me in person during office hours at least once this semester.
  • Questions?

Do you really know how to Google?

  1. Searching for "python -m pip install"?
  2. Finding a specific file format (e.g., PDF)?
    • Use filetype:, e.g. "Massachusetts rental filetype:pdf"
  3. Searching within a specific website?
    • Use site:, e.g. "calendar site:babson.edu"
  4. Roll a dice? - Just Google it!
  5. Try searching for "recursion"
  6. Try doc.new, slide.new, sheet.new, form.new, cal.new, site.new, etc.
  7. YouTube - How to "Google It" like a Senior Software Engineer
  8. Combine with other AI tools, such as Perplexity

What we have learned so far

  • Code representations: 🔠🔢🈶😂🟥🟩🟦🖼 📽 🎼
  • Scratch
  • Git/GitHub
  • Compiled vs. Interpreted programming languages
  • Programming
    • Functions: arguments, side effects, return values
    • Conditionals
    • Boolean expressions
    • Loops
    • Variables

Quick Quiz - Python Trivia Facts

  1. Was Python created as a hobby project?
  2. Where does the name "Python" for the programming language come from?
    1. Guido van Rossum's favorite pet animal
    2. Guido van Rossum's favorite comedy TV show
    3. Guido van Rossum's favorite artwork
    4. Guido van Rossum's favorite mythical creature
  3. Is Python open source?
  4. Is Python Virtual Machine (PVM) a part of CPython?

Lectures

--- # Quick Quiz - Python Basics 1) What symbol could you use to write comments? 2) Are Python variables case-sensitive? 3) Should we use single `'` or double quotes `"` for strings? 4) What **functions** have we used/seen? 5) How do we create a loop that repeats a task **4** times? 6) Is `"true"` a correct **Boolean** value? 7) What does `13 % 4` do? 8) What is the **type** and the **value** of the expression in line 2 below? ```python year = 2020 year % 4 == 0 and year % 100 != 0 or year % 400 == 0 ```