avatar Bite 320. sortable dataclasses and enums

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!

Login and get coding
go back Intermediate level
Bitecoin 3X

7 out of 7 users completed this Bite.
Will you be Pythonista #8 to crack this Bite?
Resolution time: ~23 min. (avg. submissions of 5-240 min.)

We use Python 3.8