File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change
1
+ def
Original file line number Diff line number Diff line change @@ -164,9 +164,7 @@ <h1 class="font-serif font-bold text-cloudbank text-3xl">
164
164
Maybe for some reason you want to render your static parts in
165
165
lowercase and your substitions in uppercase?
166
166
</ p >
167
- < p >
168
- No problem:
169
- </ p >
167
+ < p > No problem:</ p >
170
168
< pre > < code class ="language-python "> name = "World"
171
169
my_template = t"Hello {name}!"
172
170
@@ -183,10 +181,10 @@ <h1 class="font-serif font-bold text-cloudbank text-3xl">
183
181
# "hello WORLD!"
184
182
</ code > </ pre >
185
183
< p >
186
- Okay, you probably don't want to do exactly < i > that</ i > . But this example
187
- demonstrates that the < i > power of t-strings comes not from the template
188
- itself, but from the code you (or someone else!) writes to process it
189
- into a string</ i > .
184
+ Okay, you probably don't want to do exactly < i > that</ i > . But this
185
+ example demonstrates that the power of t-strings comes not from the
186
+ template itself, but from the code you (or someone else!) writes to
187
+ process it into a string.
190
188
</ p >
191
189
< p > So why < i > do</ i > we want t-strings?</ p >
192
190
< p > Let's start with the useful.</ p >
You can’t perform that action at this time.
0 commit comments