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

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

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help