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

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

We use Python 3.8