hello guys I'm a python trainer my name is Shas I have both development experience as well as teaching experience from last 20 years I'm into it uh in development and also in uh teaching side and today we starting a new series on python this python course is for beginners uh for even for experienced people also and for non it people also we can learn very easily this python course right and here we are coming in this session in this uh we're starting with basics of Python Programming we are starting a new series on python let's
start introduction to python what is python what are the features of python what are the popular uh popular apps in Python and what is the way to Learn Python what is python python is most popular programming language see we have so many programming languages right we have C C++ Java JavaScript so many thousands of languages are there in this in this language in all the languages uh popular is most most popular programming language okay now python is general purpose high level language uh see in this python in Python is uh general purpose high level programming
language there are two terms number one number one is general purpose and and number two high level so we must understand what is this General level and high level programming language you must understand these two terms okay so first we learn what is this General generally what generally means any area any area you take any area General generally means uh for example I want to develop one game G if you want to develop one game uh we can develop by using this Python programming language I want to develop websites like Amazon like FP cart so
I can develop websites by using python by using python uh we can develop games not only games uh we can develop websites okay not only websites okay for example desktop applications uh like uh like for example paint we have desktop right in Ms Windows system we have games so we can develop games we can develop desktop applications uh not only desktop applications even uh we can by python we can analyze the data we will go for data analytics this one or data science or data science by using this python we can develop data analytics we
can develop data science projects not only this any any Windows application any Windows application also we can develop by using python Windows applications and for example AI artificial for example machine learning all these applications can be dered by using python so python is most popular in all the languages and python is general purpose high level language so we understand we understand uh general purpose uh we understand general purpose high level program language now when we say that python is general purpose okay uh it is designed to be used for wide variety of programming task rather
being to one specific domain okay uh see here we can uh use wide variety of programming task rather than being particular domain here there some key Concepts here uh we have some key aspects of general purpose for example versatility see what is versatility python can be used for different types of applications such as as I already discussed web development data analy artifici scientific Computing automation G development anything anything by using python we can develop any any types of softwares and second one is crossplatform what do mean by crossplatform second point is crossplatform uh crossplatform means
uh python when you're develop when any projects in Windows not only Windows uh we can the same project can be run on Mac OS on Unix system or Linux system again uh next uh not Sun Solaris for example Sun Solaris you can run on any operating system suppose example I'm I'm doing one project on Windows on Windows by using python the same project we can run on Mac on Unix or sun Solaris right so cross platform next Rich ecosystem python has large number of libraries so many libraries are there so many libraries compared to other
languages uh some 1 lakh uh 37,000 libraries are there in the in Python any any area any area there are 1,000 uh 130,000 libraries are there in Python that's why this became very famous okay most popular be python was large number of libraries and Frameworks that that extends capabilities allowing developers to tackle uh tackle diverse problems effectively now next point is ease of learning is very simple python compared to other languages compared to other languages python is very easy compared to other languages like uh C C++ okay example Java or JavaScript python is simple easy
and simple even even a school student high school student can also Learn Python very easily okay python is so easy to learn compared to other languages it is uh uh one more thing how it can easy because uh it's readable syntax and straightfor structure makes it an excellent choice for beginners while still being powerful enough for experience developers to build complex application also now it has very big community community support python is large and effective Community providing extensive resources documentation and support for developers okay it has huge Community okay and and this community supported by
big big companies so python has very big community and lots of users are there to to support has large community and if any problems any problems you got any problems in your project for example I'm facing some projects uh some problems in the project uh we can we can post our our problems here in this community so that uh in the Community member can solve this problems okay this is it has large uh community community support and this general purpose characteristics allows developers to use Python for many different projects making a popular choice across the
various Industries right when you say python is high level programming language because it is easy to use and understand it's designed to be readable now what is high level see programming languages there are three types of languages from language programming line started from 1970s it has three types uh one is lowlevel when programming started uh 1970s all the program is lowlevel programming code okay and we have midlevel midlevel and third one now all the languages are high language okay now you should know the difference high level languages for example for example uh C C++ Java
JavaScript okay JavaScript and python all these languages comes under this high level programming languages now what is low level you know what is high level what is low level lower level language are uh when we started uh languages are started from 1970s and 75 right programming language started from year 19775 they used to write in low level what is low level machine code okay see computer understands only two things right computer understands only two things one is zero zeros and ones zeros and ones right now in earlier when programming language started they developed using binary
not in the English they used to develop programs by using zeros and ones and ones right and it's very difficult very difficult to write uh in binary format binary very difficult to write programs using binary so now then we got this uh what high level high level language we will write in English language so that every can understand High language are written in English English language right and for computers uh for computers computers can't understand English computer understands only two things zeros and ones zeros and ones zeros and ones okay uh it won't understand English
then how to uh how to make it to this English language how to convert to binary language so we had two things here two softwares are there to convert from English language to binary language zeros and one uh they are they are compilers and second one is interpretor second one is interpretor so these using these two softwares we can convert from English language or English language code to binary code okay for example for example here I'll tell you the example uh we'll take compilers compilers uh for example uh Java Java uses compilers C uses compilers
C++ use compilers okay and interpretors interpretors examples of interpretor for example for example uh python python use interpretor to convert from high level to low level okay and even for example PHP PHP also uses interpreter JavaScript all this all these languages use interpreter whereas Java C C++ use compilers okay now what is the difference between compilers and uh interpreters for example for example I want to I'm writing one Java program this is a editor and I'm writing uh a 10 lines of code okay third line fourth line Fifth Line sixth line sth line eighth line
ninth line and 10 line how many lines of code are 10 lines of code I written in Java this is Java code and Java uses what Java uses compilers compilers okay and compilers will come compilers will compile from the line number one to line number 10 okay it starts from here okay second line uh fourth line Fifth Line sixth line seventh line eighth line nth line 10th Line for example okay so it starts from line number one compiler will compile from line number 1 2 3 4 5 6 7 8 9 10 right for example
for example uh there is one error in the third line there is one error at third line there is one error at uh Fifth Line there's one error at seventh line now what compilers do compiler will compile all the lines at a time and it'll show there are three errors there are three errors in the program so now I do as a programmer we will Rectify this error we will Rectify this error again there's one error here we will Rectify this error okay again there at line line number seven uh we will Rectify this error
we'll Rectify this error err now when you compile again from line number one to line number two it will show there are there are zero errors there are zeros no errors the program is perfect now I can execute the program this is a compiler now what about interpreter for example now we write one program using interpreter this is Python and in Python same code I written in Python first lines second line third line fourth line Fifth Line sixth line seventh line eth 9 and 10 same errors uh error at third line error at uh some
some lines eror at Ninth line for example again here also there are three errors okay so what interal do inter also starts from uh line number one it starts from line number one it comes to line number one line number one is perfect okay this line is perfect there is no error it comes to Second Line second line also correct now it comes to third line when third line came there is one error so it stops here okay the program control stops here it won't go to fourth line until you Rectify see comper what it
comp compare all the lines from line number one to line number 10 but whereas interpretor interpretor will interpretes line by line comp all the lines at a time whereas inter will inter line number one line number two and line number three so it stops here and as a programmer what we do we have to rectify this we have to rectify this this third line because there is one error we have to rectify this error after rectifying only it comes to fourth line and fourth line there is no error Fifth Line there is no error again
it's sixth line there's one error here so it stops the program control stops here now as a programmer what we do we have to rectify this we have to re Rectify this after rectifying only it goes to seventh line eighth line again comes to ninth line ninth line there is one error it stops here ninth line it stops every to rectify this error after it comes to 10 lines then it will show there are there are 10 there are zero errors I'm sorry there are zero errors now this program don't have any errors so the
difference between compiler and interpr is compels are faster and interpretors are slow this is one disadvantage of python over java Java cc++ okay right now we understand what is the compiler and what is interpreter now I'll come back uh easy to interpret language so python I told you python is interpret language whereas C C++ Java are compiler language and it's portable what is portable we discussed portable means you can run on any operating system python can run on any system any operating system run on any operating system already we discussed this point uh Windows uh
Linux Unix Mac Mac operating system Etc so python can be run on any operating system what are the key features of python rable syntax the syntax again uh feature one of the best features of python is very simple to write programs and okay syntax is very easy I'll compare with other programming language syntax is very easy for example I want to print hello world I want to print hello world I world for example in C language uh in uh Java okay and in uh python We compare and in this now uh python is very simple
for example I want to write uh in Java for example I want to print hello world so what you here you'll say class okay for example demo then flower brackets then public static white main then flower brackets open then here what you do you'll say sop system or do do print Ln then hello world hello world then we have to close this bracket Clos this bracket so total how many lines one line Second Line third line fourth line fifth to print just hello world it took fence of code where in Java uh where is C
in C language again we to include the libraries right to include liaries what will we will write hash include uh stdio.h right then void main bracket Open Bracket close floor bracket Open Bracket close then what will do here you'll say print print F hello world this is in C language so it took 1 2 3 and four lines of code to write the same printing hello world in Cen now same I want to print hello world in Python and python is very simple very simple and the syntax are very easy for example I want to
print in Python hello world just only one line of code no need to Rite other libraries importing other libraries or using classes all these things no need just I'll type here uh print print hello world simple hello world that's it only line with one line of code I can print this hello world right so next class next uh session Dynamic typing what is dynamic typing