All language subtitles for 7. List Types

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian Download
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 0 1 00:00:00,750 --> 00:00:07,960 Now you know three data types in Python, you know integers, you know strings, and you know floats. 1 2 00:00:08,100 --> 00:00:10,770 These are simple data types. 2 3 00:00:10,770 --> 00:00:18,870 We also have what is known as compound data types, types that are made of different objects. 3 4 00:00:18,900 --> 00:00:21,700 And the list is a most popular one. 4 5 00:00:21,720 --> 00:00:24,930 So in a list you can actually store multiple objects. 5 6 00:00:25,230 --> 00:00:31,490 Let's suppose you are a teacher and you want to calculate the average grade of your students. 6 7 00:00:31,590 --> 00:00:38,290 So you use Python for that, and you need a data structure to store those values in Python. 7 8 00:00:38,340 --> 00:00:44,400 You need the proper type in Python to represent the grades of your students. 8 9 00:00:44,400 --> 00:00:46,110 And list would be a good choice. 9 10 00:00:47,550 --> 00:00:50,450 Well let's create a list, store it in a variable 10 11 00:00:50,450 --> 00:00:59,000 as usual student grades equal to open square brackets, close square brackets so the objects 11 12 00:00:59,000 --> 00:01:02,190 now will go inside this syntax. 12 13 00:01:02,570 --> 00:01:08,060 So you saw that with integers you would use a number without quotes for strings to tell Python that 13 14 00:01:08,060 --> 00:01:15,010 that is a string you use double or single quotes and with lists you use these square brackets. 14 15 00:01:15,020 --> 00:01:17,900 So every type has its own syntax. 15 16 00:01:17,900 --> 00:01:23,880 So let's say [9.1, 8.8, 7.5 ]. 16 17 00:01:23,930 --> 00:01:26,150 Those are the grades of your students. 1773

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.