Advanced Programming Unit 2

Unit 2, Day 1

Mr. Jones | Computer Programming, Advanced

Warmup

Come on in - sit anywhere you like

What do you think “class” means in these two examples?

“Best in Class”
“Class ”

Upcoming Schedule

Upcoming Schedule

  • Today - Start Unit 2
  • Thursday - Workplace Readiness Exam
  • Monday (10/9) - Teacher Workday
  • Tuesday (10/10) - Continue Unit 2
  • Wednesday (10/11) - PSAT

Today - Objects

An object is a collection of information and functions

  • In Python, everything is an object!
  • An object has information
  • An object has behavior
  • In this unit, we’ll make our own objects

You already know some objects

  • String: Has length, and functions like upper() myString = “asdf” print(myString.upper())

Objects belong to classes

  • Class - the “type” of the object
  • All objects in the same class have the same information and behavior

Let’s play a game

Group-work

Groupwork

With a partner discuss how an object would be useful for one of these Python programs:

  • To-Do List
  • Grade Calculator

Recap Unit 2, Day 1

This is a recap slide

(To be completed)

More recap

(Coming soon)