Ask coding questions

← Back to all posts
lists
gumark

im dumb and how do you print lists with out the brakets.

Thanks random people

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
cdCreepArghhh
Comments
hotnewtop
SixBeeps

There's a tone of ways to do it. I think the canonical solution is to use .join() and using something like ", " as the separator.

gumark

@SixBeeps like i said, im dumb, and have no idea what you just said

SixBeeps

@gumark Skim the article I linked and see if you can figure out what's happening here:

Then this method should be simple enough to apply to your program.

MrVoo
WWEMONSTERMONST

You can print elements of a list without brackets by using the starred expression. For example: