Lists can be written as a list of comma-separated values (items) between square brackets. : List Declaration « List « Python






Lists can be written as a list of comma-separated values (items) between square brackets.

Lists can be written as a list of comma-separated values (items) between square brackets.



a = ['spam', 'eggs', 100, 1234]
print a

           
       

Related examples in the same category