2.1 Creating and Accessing Lists
Lab 2.1.1
Write a Python code to create a Python list containing the following items: 1,2,3,4,5,6,7,8,9
- Display all items
Lab 2.1.2
Write a Python code to create a Python list contianing the following items: 1,2,3,4,5,6,7,8,9
- Display the first item
Lab 2.1.3
Write a Python code to list the following items: 1,2,3,4,5,6,7,8,9
- Display the last item
Lab 2.1.4
Write a Python code to create a Python list containing the following items: 1,2,3,4,5,6,7,8,9
- Display from 2nd to 4th items.
Adapted from Python for Introductory Statistics: Student's Lab Workbook, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.