Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.17 KB

hw3.md

File metadata and controls

42 lines (27 loc) · 1.17 KB

home | copyright ©2016, [email protected]

overview | syllabus | src | submit | chat


Homework3: coding homework

Read chapters one to four of Think like a Computer Scientist

    1. Lists
    1. Dictionaries
    1. Tuples
    1. Classes and Objects
    1. Classes and Functions
    1. Classes and Methods
    1. Inheritance

Read about Python's magic methods

Then do:

  • 10.15 Exercise 8 (the Birthday Paradox)
  • Write an Employeee class
    • That can be initialized with name and age (hint: __init__)
    • That pretty prints name and age (hint: __repr__)
    • That can be sorted on age (hint: __lt__)
  • 18.12:Exercise 6 (Poker!)