მონ.სტრუქტურები
მონაცემთა სტრუქტურები¶
წყვილები - Tuples¶
წყვილები ეს არის ობიექტების მიმდევრობა, შიგთავსი შესაძლებელია იყოს ნებისმიერი
რიცხვების რაოდენობა. წყვილები იწერება მრგვალ ფრჩხილებში ().
Tumpes | |
---|---|
პროგრამირებაში თვლა იწყება 0 - დან. ანუ პირველი ობიექტის ინდექსი იქნება 0, შემდეგის 1 და ა.შ
ინდექსი უნდა იყოს ოთხკუთხედ ფრჩხილებში [].
Tumpes | |
---|---|
სიები - Lists¶
A list is similar to a tuple - but with a key difference. With tuples, once created, they cannot be changed, i.e. they are immutable. But lists are mutable. You can add, delete or change elements within a list. In Python, lists are written with square brackets []
Tumpes | |
---|---|
შესაძლებელია