Bite 82. Define a Score Enum and customize it adding methods
|
|
Starting Python 3.4 there is support for enumerations (not to …
3.10
classmethod
enum
__str__
|
|
Bite 114. Implement a Color class with staticmethod
|
|
As the new junior developer, you have been charged with …
3.10
hex
__repr__
staticmethod
__str__
string module
|
|
Bite 138. OOP fun at the Zoo
|
|
Finish the Animal class below adding one or more class …
3.10
classes
classmethod
itertools
__str__
|
|
Bite 167. Complete a User class: properties and representation dunder methods
|
|
In this Bite you are presented with another class, User …
3.10
classes
dunder methods
f-strings
properties
__repr__
__str__
string manipulation
|
|
Bite 181. Keep a list sorted upon insert
|
|
Complete the add method of the OrderedList class which takes …
3.10
bisect
classes
data structures
__str__
|
|