File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
text/main/basics/simpleDataTypesAndOperations/str Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 279
279
\pythonil {f"Single braces without expression: \{\{ and \}\} ."} simply becomes \pythonil {"Single braces without expression: \{ and \} ."}
280
280
281
281
As final example, let us look at a very cool ability of \pglspl {fstring}\pythonIdx {f-string!=}.
282
- Often, we want to print an expression together with its result~\cite ( PSF2024WNIP38FSFSDEAD) .
282
+ Often, we want to print an expression together with its result~\cite { PSF2024WNIP38FSFSDEAD } .
283
283
Earlier, we wrote \pythonil {f"\{ 5\}\ + \{ 4\}\ = \{ 5 + 4\} "} is evaluated to \pythonil {"5 + 4 = 9"}.
284
284
What we actually wanted to print was the expression \pythonil {5 + 4} together with its result.
285
285
This can be done much easier:
You can’t perform that action at this time.
0 commit comments