OIM3600 - Computer Science for Business Students

Session 08 (9/23)

contain

Today's Agenda

Welcome/News/Announcements

  • Please update your GitHub profile name to your real name.
  • Office hours today: 11:30AM - 12 PM
  • 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?

What we have learned so far

  • Code represent: 🔠🔢🈶😂🟥🟩🟦🖼 📽 🎼
  • Scratch
  • Git/GitHub
  • Programming
    • Functions: arguments, side effects, return values
    • Conditionals
    • Boolean expressions
    • Loops
    • Variables

Generative AI Policy

  • AI tools like ChatGPT and Copilot can be helpful, but they are also a shortcut that prevents you from learning.
  • You may use them for generating ideas, explaining concepts, clarifying error messages, or reviewing code you've already written.
    • Be sure to acknowledge and cite any AI tools used, including the tool name and the output provided.
  • Using GenAI tools directly for exercises, homework assignments, quizzes, or similar tasks is considered an academic integrity violation.

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 the second line below?
    year = 2020
    year % 4 == 0 and year % 100 != 0 or year % 400 == 0
    

Homework / Coding Style

  • Please follow the instructions.
  • File/folder names - use lowercase, and underscore (in filenames), no spaces
    • i.e., hw/cash/cash.py
  • Write comments / pseudo-code / docstrings
  • Grading Rubrics

Revisit Homework

Lectures