Sortable dataclasses and enums
Level: Intermediate (score: 3)
Write an enum
called BiteLevel
and a dataclass
called Bite
following the instructions below.
Make sure that the dataclass
and enum
objects can be sorted. For that look at the arguments the @dataclass
decorator and type of enum
respectively.
Good luck and keep calm and code in Python!