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 OK. 1
So you know strings, you know floats, you know integers, you know lists. 2
OK. 3
So you know data types. 4
But how can you actually do something in Python? 5
What can you do with these data types? 6
Well to answer your question you should look at the dir command. 7
Well let me now start to use the Python shell a little bit more to do things quicker. 8
So I'm going to split this into two. 9
This is for executing the Python file. 10
This is for the interactive Python shell. 11
So what can we do with lists? 12
You can find that out by doing dir. 13
Dir is a function in Python that will give you 14
all the things you can do with a specific type. 15
So with a list in this case, all these here are attributes of a list, you can do the same for checking int. 16
You can do the same for checking floats, dr float, dir str. For example let's stop at str before 17
we go to lists, with a string you can do for example, you can turn them into uppercase using these method. 18
To find out what upper does you want to use 19
help str, that is the type that has the attributes upper. Now attributes are all these, and they can be 20
either methods or properties. 21
You do know that until you check with help. 22
So that is the help documentation for the upper method. 23
It's a method as you can see here. Q to quit and go back to the shell and then let's go ahead and use 24
that. 25
"hello" 26
dot upper, you use the method with round brackets, with parentheses and that's with the return 27
the capitalized version of "HELLO". If we used title instead that will capitalize the first letter only. 28
Of course you can use variables 29
and you get the same output. 30
Now what do we have for lists? 31
How about calculating the average of the student grades? 32
Let's do that in the next video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.