Afrikaans
Akan
Albanian
Amharic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
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
1
Great, before we go ahead and learn about
the Python basic such as variables,
3
functions and so on I think it's good
that's you understand how a Python
5
program looks like. This is especially
good if you have never programed before.
7
languages you may have three kinds of
9
programs and I'll tell you why we have
three kinds of programs so you may have
11
a program with a command line interface
such as this one here. You may have a
13
program with a graphical user interface
such as this one here, so it's a desktop
15
application and you may also have for
web applications such as this one in
17
here that runs on the browser and it
can be accessed through the internet.
19
Now the first thing you should know is that
all these programs they are based on a
21
dot py file such as this ones in here
so this is a Python file and whenever
23
you start building something you should
write your code in this script I which
25
looks like this one here, anyway and then
once you have that script you can either
27
run it through the command line interface
such as this one, script 4.py
29
Execute it and then you communicate with
the interface so your program your
31
Python program is asking you to enter
some letters in there and so enter V V
33
and c for consonants consonants. L or C, anyway
and get some output in the command line
35
Interface. Now when do you use such a program?
Well, you do this program if you not
37
planning to distribute this program to
normal users, to people who don't know
39
programming so I use Python,
the Python program which I have
41
already installed and I show and I'll
show you how to install that later so I
43
use Python and that points to the Python
script so to the Python program to execute
45
the program. Now, normal users they don't have
Python installed or they don't know how
47
to execute a Python program and that's
why you have
49
graphical user interface there such as
this one, or browsers such as this one
51
in here and yeah why don't you use
desktop application such as this? Well you'd
53
use that if you just want to distribute
your program to a specific number of
55
users let's say you work on a
company and you will want to build a
57
program for the employees of a company
to do specific tasks and so you could
59
build this program and it's possible to
create an executable file out of your
61
Python program. This particular one is
A dot exe file for Windows, it runs on
63
Windows as a standalone program but you
can also create dot app files for Mac
65
computers and then the user they don't
need to have for installed. They would
67
simply execute the dot exe file and they
can use the application so yeah, that's
69
the application. We will be building all these
three applications in the course so the
71
command line interface, the web
application and the desktop based
73
application and then you have
web applications such as this one you here.
75
So when would you use a web application?
Well the web applications are best when
77
your audience is large so basically you
may want as many users to your
79
application as possible so for
instance what we have here is this is a
81
geocoder service. It geocodes, it converts
addresses to latitude and longitude
83
coordinates so what users can do here is
they can choose a file, so s CSV file and
85
then you calculate latitude and
longitude and send them back as csv file
87
with those values so a web application in
simple words can be for anyone and this
89
also is based on dot py files on the
background so I will show these files
91
for now we're going to build all these
applications as I told you so,
93
yeah that's about this lecture I hope you
have a clear idea now
95
Of what a program, a Python program looks
like and what you can do with Python as well.
97
If you have questions please feel
free to ask them in the Q&A section, so in
99
the discussion area of the course and
yeah I'll be happy to help you. Hope you
101
enjoyed this and I'll to talk you in the next
lectures.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.