Hone Your Python Skills!
Newbie Bites
Intro Bites
Regular Bites
Learning Paths
100 Days of Code
Pricing
Community
Login
☰
☰
PyBites Platform
Pybites Platform 2.0 is live 🎉 🐍
Join us now 📈
What to code next?
Bites of Py Exercises
Blog Code Challenges
Bite
Level
Description & Tags
Bite 192. Some logging practice
You are to flesh out the log_it() function so that …
3.10
callable
logging
Bite 71. Keep state in a class + make its instance
callable
In this Bite you write a small class to keep …
3.10
classes
dunder methods
PCC
Title
Summary
14
Write DRY Code With Decorators
Hi Pythonistas, a new week, a new 'bite' of Python coding! This week we let you practice with decorators, a nice way to abstract away common functionality. It allows you to alter the behavior of a callable without modifying the callable itself. We agree with Dan Bader that 'understanding decorators is a milestone for any serious Python programmer.' Enjoy!