Configuration

Night mode

Lists and Collections

Learn Python Essentials for Data Science Course

Engineers From These Top Companies and Universities Trust EXLskills

1M+ Professionals | 100+ Institutions

This is the EXLskills free and open-source Python Introduction Course. It guides learners via explanation, demonstration, and thorough practice, from no more than a basic understanding of Python, to a moderate level of essential coding proficiency.

Is this course FREE?

Yes, this a 100% free course that you can contribute to on GitHub here!

Have more questions?

Manipulating Varables

Lists and Collections

First up: Collections

Storing Data in a python list

Once you have had the opportunity to use each of these data types in python, you can hold these variables in a multitude of data structures. One of the most useful data structures that you will find are lists.

List can contain both numbers and strings and can hold many of each. In general, you want to make sure that you do not name your list: 'list' as this will lead to errors in the future. A few more example of putting together lists is below: