mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Doc: Allow translating a code block in the tutorial (#131353)
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
4617d68d73
commit
3224b99872
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