Oct-16-2017, 04:31 AM
If it is a list, it will print enclosed in brackets, to indicate to the viewer that is is indeed a list.
If you want to print the elements in a list, do:
[/python]
If you want to print the elements in a list, do:
mylist = ['apples', 'pears', 'oranges'] for item in mylist: print(item) # to print individual items (remembering that the index is zero based) [python]print(mylist[1])will print pears.
[/python]