#100DaysOfCode in Python Transcripts
Chapter: Days 22-24: Decorators
Lecture: Second day: a practical exercise
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Welcome back to the second day of decorators. Today, you get your hands dirty writing a decorator, and I got an exercise here that you can do
0:11
on the PyBites Code Challenge Platform. The goal is to make this work, basically. So we have a gettext function
0:19
that takes a text, and you're going to decorate it with a make_HTML that basically adds a tag. So you can stack it to add various tags,
0:31
so when I call it like this, it should output p strong, the text of the function, and closing strong, and closing p. And that's all there is for today.
0:41
If that's easy for you, you can already try to look at Day 3. Good luck.