Ask coding questions
im dumb and how do you print lists with out the brakets.
Thanks random people
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.
@SixBeeps like i said, im dumb, and have no idea what you just said
@gumark Skim the article I linked and see if you can figure out what's happening here:
"sep".join([1, 5, 7])
Then this method should be simple enough to apply to your program.
for i in list: print(i)
You can print elements of a list without brackets by using the starred expression. For example:
nums = [1, 2, 3, 4]
print (*nums) # 1 2 3 4