Python Introducing Lists Using Lists Iteration

List 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
Josh Keenan
19,311 Points

You 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.