In short
A list is an ordered collection of values written in square brackets, for example [3, 7, 2]. Its items can be changed, added and removed.
Items are numbered from , so the first item is marks[0]. A list can hold numbers, text or even other lists. Useful actions are append to add an item, len to count, sorted to sort and slicing such as marks[1:3] to take a part. A list is not a NumPy array: arithmetic on a list does not work element by element.
This prints 4 77.75, the number of marks and their mean.
Python labs run in your browser. Type the code, run it and see what happens.
Open a Python lab