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 Now you know three data types in Python, you know integers, you know strings, and you know floats. 1
These are simple data types. 2
We also have what is known as compound data types, types that are made of different objects. 3
And the list is a most popular one. 4
So in a list you can actually store multiple objects. 5
Let's suppose you are a teacher and you want to calculate the average grade of your students. 6
So you use Python for that, and you need a data structure to store those values in Python. 7
You need the proper type in Python to represent the grades of your students. 8
And list would be a good choice. 9
Well let's create a list, store it in a variable 10
as usual student grades equal to open square brackets, close square brackets so the objects 11
now will go inside this syntax. 12
So you saw that with integers you would use a number without quotes for strings to tell Python that 13
that is a string you use double or single quotes and with lists you use these square brackets. 14
So every type has its own syntax. 15
So let's say [9.1, 8.8, 7.5 ]. 16
Those are the grades of your students.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.