Hello everyone and welcome to this video lecture.
In this video elected we are going to have a tool of Python and related applications that are available
by default on the as we own oils of Raspberry Pi.
So if you haven't got any opportunity to work with raspberry pi earlier then this is a golden opportunity
to learn everything about Python.
Available on Raspberry Pi.
So let us get started.
Opened it up middle of Raspberry Pi.
This is the command prompt of Raspberry Pi.
Now we're going to check for the existence of Python interpreter so that can be done by typing in Python.
OK so this is going to start the Python interpreter in the interactive mode.
Now the problem with this is that this is Python two point seven point thirteen and our focus is going
to be mostly on python 3 in this entire video course.
So Raspberry Pi comes with both divergence of python by default in order to invoke the Python 3 interpreter.
You have to type in Python 3 and this is going to invoke the Python 3 interpreter as you can see here
let us clear the screen.
And another important utility is BHP we are going to learn about BHP in the entirely dedicated section
for BHP.
But for now just understand that BHP is a very important utility that must be there.
If you are going to work with Python so we can check for it.
Just I mean which VIP.
So this is the BHP okay.
And for Python 3 we help BHP three.
So you just type in which BHP three.
So we have a separate binary executable for BHP three.
Similarly you can just check the locations for python and Python three
and
Python 3.
So these are the locations of all the binary files that we need.
Now we know that ideally is the integrated development and the link environment provided by Python Software
Foundation and this also comes pre installed with raspberry pi.
So if you're going to install Python on windows
from the Python Software Foundation's Web site then it will chip with ideally.
Similarly this ideal is also available on Raspberry Pi by default.
So you can just type in which ideally three.
So it is going to show you the location of ideally three.
So now next thing that we are going to do is close the command window and go here in the programming
section and here you can find Python 3 ideally and here you can just type in your small program
hello world so as of now we are just trying to interact do more.
And this is the ideally you can create a separate file.
So just see new file and hearing the options just configure the ideally and change the size of the font
if possible.
So I'm going to set it to the max OK.
So here also you can type in the program and execute it.
So there is an entirely dedicated lecture far and I think the simple Hallowell script.
So I'm not going to cover that in this lecture
now we are going to have a look at some other ideas.
Then there is this genie.
Virginia.
It is also useful.
So I'm just going to say brain
hello world
and if I say this
on the next drop I'm going to save it and I'm going to save it as the Arrow g 0 0 dot B Y
I can directly run this by saying build and execute so it is going to invoke the shell.
It is going to execute that program in the shell.
So I think that there is some problem.
So let us try to debunk the problem with this.
OK.
So here go to the bill and go to the Senate bill commands and here you can see that the execute command
has been set to Python 3.
Ok so I'm just gonna say OK.
And I'm going to say Bill then execute again OK so here now we can see the program has been executed
successfully
and this is how we can run that program.
Indeed geniality.
Now you will be able to find this file.
Zero G Zero Zero Dark B right here under next drop.
Similarly there is another idea available by default.
This is Tony python.
I.
This is a new idea.
I haven't seen it before.
Earlier
so let us try to open the file that we have already created.
So this is the Piero G Zero Zero Dark b y.
And if I executed it shows the output here in this shell window
so these are the ideas and Python interpreters available in Raspberry Pi arise B.A. is by default.
You don't have to install any anything or you don't have to install any new utility to get started with
Python programming on Raspberry Pi so in the subsequent lectures we are going to see it in very detailed
how to write a simple Hallowell program and how to execute that program in the multiple ways on the
Raspberry Pi arise Ariba us I hope that you understood all the things that I have explained and demonstrated
in this video lecture.
Thanks a lot for watching this video lecture and I will see you next time.