From d77f4acd0ce9ced0493790cf01f479000a6286a8 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Mon, 17 Mar 2025 11:01:02 +0000 Subject: [PATCH 1/4] Add code block --- Doc/tutorial/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index bec5da8fd759ac..f02f36daa55f68 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -145,7 +145,7 @@ Python can manipulate text (represented by type :class:`str`, so-called "strings") as well as numbers. This includes characters "``!``", words "``rabbit``", names "``Paris``", sentences "``Got your back.``", etc. "``Yay! :)``". They can be enclosed in single quotes (``'...'``) or double -quotes (``"..."``) with the same result [#]_. +quotes (``"..."``) with the same result [#]_.:: >>> 'spam eggs' # single quotes 'spam eggs' From 777edcdc07ec62e24ba45220bba78f008b6cb1e8 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Wed, 19 Mar 2025 15:40:17 +0000 Subject: [PATCH 2/4] Update Doc/tutorial/introduction.rst Co-authored-by: Chris Markiewicz --- Doc/tutorial/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index f02f36daa55f68..dd626799f3bfa4 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -145,7 +145,7 @@ Python can manipulate text (represented by type :class:`str`, so-called "strings") as well as numbers. This includes characters "``!``", words "``rabbit``", names "``Paris``", sentences "``Got your back.``", etc. "``Yay! :)``". They can be enclosed in single quotes (``'...'``) or double -quotes (``"..."``) with the same result [#]_.:: +quotes (``"..."``) with the same result [#]_:: >>> 'spam eggs' # single quotes 'spam eggs' From a5e5f4d8343d941b2e78be1796fb6f97cf53f028 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Wed, 19 Mar 2025 15:40:38 +0000 Subject: [PATCH 3/4] Update Doc/tutorial/introduction.rst Co-authored-by: Chris Markiewicz From cc14352b6030846b1a529ee0591c1e5a55da967e Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Thu, 8 May 2025 10:14:38 +0100 Subject: [PATCH 4/4] Prefer directives --- Doc/tutorial/introduction.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index dd626799f3bfa4..cdb35da7bc95ba 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -145,7 +145,9 @@ Python can manipulate text (represented by type :class:`str`, so-called "strings") as well as numbers. This includes characters "``!``", words "``rabbit``", names "``Paris``", sentences "``Got your back.``", etc. "``Yay! :)``". They can be enclosed in single quotes (``'...'``) or double -quotes (``"..."``) with the same result [#]_:: +quotes (``"..."``) with the same result [#]_. + +.. code-block:: pycon >>> 'spam eggs' # single quotes 'spam eggs'