Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlan Temirov
Courses Plus Student 762 PointsList elements
is there a way I can print out all elements of a list without [] brackets like I do with a particular element where when I print list[0] it gives me a single element of list just in qoutes, but is there a way where I can print out in same style all elements of the list, like list[0,1,2,3....]
1 Answer
Josh Keenan
20,315 PointsYou can print the list like so:
my_list = [1, 2, 'three', False, 5]
print(my_list)
And it will output the list as it looks here.