Pybites Platform
Exercises
Learning Paths
Newbie Bites
Intro Bites
Regular Bites
Rust Bites ↗
Pricing
Help
Docs
Coaching
Community
News
⌘K
Login
__Str__ Bite Exercises
Level
Name
Tags
Beginner
Complete a user class: properties and representation dunder methods
dunder methods
properties
classes
__str__
string manipulation
f-strings
__repr__
Beginner
Keep a list sorted upon insert
classes
data structures
__str__
bisect
Intermediate
Define a score enum and customize it adding methods
enum
__str__
classmethod
Intermediate
Implement a color class with staticmethod
__str__
string module
__repr__
hex
staticmethod
Intermediate
Oop fun at the zoo
itertools
classes
__str__
classmethod
Keyboard Shortcuts
Bite Page
Run Tests
+
Enter
Run Code
Shift
+
Enter
Lint
Alt
+
Enter
Switch Tabs
+
1
2
3
Global
Search
+
K
Show Shortcuts
+
Shift
+
K
Press
Esc
to close