Article / Updated 10-09-2019
is any list of data items, separated by commas, inside square brackets. Typically, you assign a name to the Python list using an = sign, just as you would with variables. If the list contains numbers, then don't use quotation marks around them. For example, here is a list of test scores:scores = [88, 92, 78, 90, 98, 84]If the list contains strings then, as always, those strings should be enclosed in single or double quotation marks, as in this example: in your code after defining that list shows this on the screen.