Free skill reference · Data & analytics

Python lists — store and loop over data

Lists are the first Python structure most people need — for grades, guest lists, inventory, or survey answers.

  1. Create a list with square brackets.
  2. Append items as you collect them.
  3. Loop with for item in list.
  4. Use len() and slicing for summaries.

Practice in Lab

Open the Lab workspace in the Data & analytics domain — free to start. Tourism, engineering, business, language, and more — not only coding.

More free guides