From c5c93723d426ab61acaa7cc2a15f8210b72c22e1 Mon Sep 17 00:00:00 2001 From: tssubs76 <168799084+tssubs76@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:14:54 +0800 Subject: [PATCH] Update join.rst Sequence of output seems to be incorrect. Reverified by using python3 console on MacOS --- source/docs/str/join.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/str/join.rst b/source/docs/str/join.rst index 7525d52..61797c1 100644 --- a/source/docs/str/join.rst +++ b/source/docs/str/join.rst @@ -30,7 +30,7 @@ Example >>> ''.join(['A', 'B', 'C']) 'ABC' >>> ''.join({'A': 0, 'B': 0, 'C': 0}) # note that dicts are unordered -'ACB' +'ABC' >>> '-'.join(['A', 'B', 'C']) # '-' string is the seprator 'A-B-C'