]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Allow translating a code block in the tutorial (#131353)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Thu, 8 May 2025 09:22:04 +0000 (10:22 +0100)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 09:22:04 +0000 (09:22 +0000)
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/tutorial/introduction.rst

index bec5da8fd759acd0cb5e57cfc0af1f9b9755eb22..cdb35da7bc95baf2fcd5bf6da7e7f570ff85d0c4 100644 (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