🔹 1. List A collection of elements (numbers, strings, etc.) fruits = ["apple", "banana", "cherry"] 🔹 2. Subset of List (Indexing) Accessing a single element using its index print(fruits[1]) # Output: "banana" print(fruits[-1]) # Output: ...
Markdown supported · ⌘↵ to post
No responses yet.