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 To your surprise or not strings also have an indexing system. 1
The good news is that they have exactly the same system as lists so they have positive and negative 2
indexing and you can slice them and you can access items from them. 3
Let me make a quick demonstration, string 'hello', that will give you the string 'e' which is still a string, 'hello' 4
is a strin, 'e' is also a string, negative indexing, and also slicing. One cool thing you can do is let me get 5
this list. 6
So it's a list containing different types of objects and what you can do is you can access, guess it. 7
Well that's the 'hello' string. 8
So, the first item of the list and then you can use a chain indexing such as for example if you type 9
2 there. 10
Guess what you're going to get? 11
Well, you're going to get the first L because of that has an index of 2, so 0 for H, 1 for E, 2 for L because 12
this part here is the value on its own. 13
And this other part will get that item with index 2 of that value which happens to be a string. 14
It is as simple as that.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.