forked from talkpython/100daysofcode-with-python-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path8.txt
More file actions
executable file
·16 lines (16 loc) · 711 Bytes
/
8.txt
File metadata and controls
executable file
·16 lines (16 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
00:00 Welcome back to the second day of decorators.
00:03 Today, you get your hands dirty writing a decorator,
00:06 and I got an exercise here that you can do
00:10 on the PyBites Code Challenge Platform.
00:12 The goal is to make this work, basically.
00:15 So we have a gettext function
00:18 that takes a text, and you're going to decorate it
00:22 with a make_html that basically adds a tag.
00:26 So you can stack it to add various tags,
00:30 so when I call it like this, it should output
00:32 p strong, the text of the function,
00:35 and closing strong, and closing p.
00:38 And that's all there is for today.
00:40 If that's easy for you, you can already
00:42 try to look at Day 3.
00:44 Good luck.