Important Notice:

List Manipulation (Chapter: 7)

2 Notes

Notes in List Manipulation (Chapter: 7)

Lists in Python

ListsA list is an ordered, mutable collection that can hold different data types.my_list = [1, 2, 3, "hello", True]List...

M3-R5.1
Read Now →
List Comprehension & Slicing

List Comprehensionsquares = [x**2 for x in range(1,6)]\n# [1, 4, 9, 16, 25]\n\nevens = [x for x in range(20) if x%2==0]\...

M3-R5.1
Read Now →