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:
Stan Ulbrych 2025-05-08 10:22:04 +01:00 committed by GitHub
parent 4617d68d73
commit 3224b99872
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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