mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.13] Doc: Allow translating a code block in the tutorial (GH-131353) (#133649)
Doc: Allow translating a code block in the tutorial (GH-131353)
(cherry picked from commit 3224b99872
)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
a0dd4f0c56
commit
eefe7e22b8
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,8 @@ Python can manipulate text (represented by type :class:`str`, so-called
|
|||
"``Yay! :)``". They can be enclosed in single quotes (``'...'``) or double
|
||||
quotes (``"..."``) with the same result [#]_.
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> 'spam eggs' # single quotes
|
||||
'spam eggs'
|
||||
>>> "Paris rabbit got your back :)! Yay!" # double quotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue