Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
0 This one here is a list 1
and now it is a tuple so a tuple is just like a list but with parentheses not square brackets. 2
If you print it out of course you'd get the same representation as in here. 3
So (1, 4, 5) (1, 4, 5). 4
However the brackets and the parentheses is not the only difference between lists and tuples. 5
In fact this is just the difference in syntax. 6
The real difference there is that tuples such as this one in here are immutable and lists such as this 7
one 8
are mutable. 9
What that means is at the list monday_temperatures2 you can add more items to the list using for example 10
the append methods. 11
So if you check monday_temperatures too know you'll get a list mutated. This mutability makes this 12
very dynamic, you'll see you later how when we do this batch operations in each operation we are adding 13
items to the list as we generate those items those values with some functions. 14
But this is not the case with tuples. If you try to append in a tuple you'll get an error because the 15
tuple doesn't actually have an offensive method at all. 16
Likewise it doesn't have a remove method like the list does 17
so 4 is not there anymore, tuples however have the advantage that they are a bit faster than lists 18
but you should think what to use so whether to use lists or tuples you should think if the array you 19
are creating is going to be changed during the course of the program or not. 20
So for now I'm not going deeper into tuples and lists. 21
But when we create these 10 applications during the course you will understand the main differences 22
between the two by seeing how they work in the real programs.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.