From 5302b7b351aa5d53ca34bf75ea1e5de2ac2ff96d Mon Sep 17 00:00:00 2001 From: Blake Lambert <36992974+curiouscoding22@users.noreply.github.com> Date: Fri, 28 Jun 2019 01:57:37 -0400 Subject: [PATCH] Added parenthesis, updated to Tuple. (#31085) Added parenthesis to print function to align file. Changed #2 from a list to a tuple. --- .../python/string-methods/string-join-method/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guide/english/python/string-methods/string-join-method/index.md b/guide/english/python/string-methods/string-join-method/index.md index dce1a395e7..5a5de82060 100644 --- a/guide/english/python/string-methods/string-join-method/index.md +++ b/guide/english/python/string-methods/string-join-method/index.md @@ -12,7 +12,7 @@ If the iterable contains any non-string values, it raises a TypeError exception. 1) Join a ist of strings with `":"` ```python -print ":".join(["freeCodeCamp", "is", "fun"]) +print( ":".join(["freeCodeCamp", "is", "fun"])) ``` Output ```shell @@ -21,7 +21,7 @@ freeCodeCamp:is:fun 2) Join a tuple of strings with `" and "` ```python -print " and ".join(["A", "B", "C"]) +print(" and ".join(("A", "B", "C"))) ``` Output ```shell @@ -30,7 +30,7 @@ A and B and C 3) Insert a `" "` after every character in a string ```python -print " ".join("freeCodeCamp") +print(" ".join("freeCodeCamp")) ``` Output: ```shell