#100DaysOfCode in Python Transcripts
Chapter: Days 22-24: Decorators
Lecture: Third day: write your own decorator

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Welcome back.
0:01 For this final day of the decorators lesson,
0:03 I got another code challenge for you.
0:07 It's more an open challenge, which you also can do
0:10 on the Code Challenge platform,
0:12 and basically it's to write a decorator
0:14 of your own choice.
0:15 You can just look at your code maybe,
0:17 refactor things that are repetitive,
0:19 but I leave you totally free to build something
0:22 that's useful for your needs.
0:24 For example, when we did the #100DaysOfCode,
0:27 at Day 95, we used a decorator of our own.
0:34 By the way, here you see how cool it is
0:36 to keep a log of your progress, 'cause you can always
0:38 go back to all the scripts you have written.
0:41 So here, Day 95, we used a decorator
0:45 to cache movie results.
0:49 And here we wrote a decorator to store
0:51 or cache movie results.
0:53 It's doing that in the store helper,
0:55 which you can see here.
0:56 So that's an example of how we used the decorator
0:59 for our own needs.
1:00 And that's what I challenge you to do
1:02 by taking this challenge.
1:03 And, of course, we invite you to PR,
1:06 or pull request, your work.
1:08 And there are instructions here to get set up with git
1:11 and pull request your work, which you can also
1:14 do here on the platform.
1:17 By the way, don't forget to share your awesome scripts
1:20 on Twitter using #100DaysOfCode
1:23 and feel free to include us.
1:26 Tag Python and PyBites.
1:27 We are really happy to see what you all come up with.
1:30 So enjoy, and learn a lot about decorators.