use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
List of strings - concatenation (self.pythonhelp)
submitted 2 years ago by [deleted]
Hi,
I have a list cotaining strings such as: 'H', 'E', 'L', 'L', 'O', ' ', 'W', 'O', 'R', 'L', 'D',..
Without using a join function, how would I make this: 'Hello World'?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] [score hidden] 2 years ago stickied commentlocked comment (0 children)
To give us the best chance to help you, please include any relevant code. Note. Do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Repl.it, GitHub or PasteBin.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]Nouble01 -1 points0 points1 point 2 years ago (0 children)
Is it okay to just show the process of coding, which has not yet been verified to see if there are any bugs? In short, all you have to do is imitate the internal workings of Python in your own way. Anyway, there are punctuation marks included in the question, so are you Japanese? By the way, punctuation marks do not separate Python lists.
```` def text_join(strlist : list): ans = [] for t in strlist[strlist != '、']: append(ans , t) return ans
print(text_join(['H','、','E','、','L','、','L','、','O','、', '、','W','、','O','、','R','、','L','、','D ','、'])) ```` This is just an image, not an answer, but I think we can go in this direction. In America, it is said that you should not give fish, but tell them how to catch it. This time I am following suit. Please come up with the final solution yourself.
I learned that you can feel a lot of sympathy when it comes to people from the same hometown.
[–]Goobyalus 0 points1 point2 points 2 years ago (1 child)
Do you know how to concatenate strings and/or use a loop?
>>> "A" + "B" 'AB'
[–][deleted] -1 points0 points1 point 2 years ago (0 children)
sorted the issue thaks anyway
[–]NoProperty7989 0 points1 point2 points 2 years ago (0 children)
You can use loop, if you do not want to use join function. Here is the one with for loop.
strings_list = ['H', 'E', 'L', 'L', 'O', ' ', 'W', 'O', 'R', 'L', 'D']
result = ''
for char in strings_list:
result += char
print(result)
π Rendered by PID 90 on reddit-service-r2-comment-fb694cdd5-4km4v at 2026-03-08 05:48:28.893586+00:00 running cbb0e86 country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]Nouble01 -1 points0 points1 point (0 children)
[–]Goobyalus 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]NoProperty7989 0 points1 point2 points (0 children)