Lista čuva više vrednosti u određenom redosledu.
Write values between square brackets and separate them with commas. Each value has a position, so Python can find or change it later.
fruits = ["apple", "banana", "orange"]
print(fruits)The name fruits refers to one list containing three strings in order.
['apple', 'banana', 'orange']Lists are mutable: you can replace an item without creating a new list. len() tells you how many items the list contains.
Zapamtite: List positions use indexes that begin at 0, not 1.
fruits = ["apple", "banana", "orange"]
fruits[1] = "pear"
print(fruits)Index 1 is the second item, so only "banana" changes to "pear".
