home |
copyright ©2016, [email protected]
overview |
syllabus |
src |
submit |
chat
Read chapters one to four of Think like a Computer Scientist
-
- Lists
-
- Dictionaries
-
- Tuples
-
- Classes and Objects
-
- Classes and Functions
-
- Classes and Methods
-
- 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__
)
- That can be initialized with name and age (hint:
- 18.12:Exercise 6 (Poker!)