[No audio]
Before we go into coding, I want to
show you a productivity tip regarding the IDE.
Now, this tip is about Visual Studio Code IDE, but
it will probably apply to other IDEs as well.
It's about the terminal, how to
use the terminal more efficiently.
And this will help you with coding
and also with the learning part.
So this is what I want to show you.
I have my terminal open here.
So first of all, what I want to do is
I want to delete all the terminals using that icon,
or the icon could be somewhere in here.
So just delete everything.
Yeah, the icon shows here.
Now press that or the other
one, until the terminal disappears.
And then you want to show the terminal again,
and you can do that by pressing this button.
So that will execute the code.
It will create a new terminal window, and then it's good
to have a Python shell open on the side as well.
So you have both the command line where you
run the code, but also the Python Interactive shell
where you can write quick one liners.
So to do that, you want to press
this icon, and that will split the terminal.
So now we have one terminal here on the
left, and one terminal here on the right.
Here on the right, what we want to do is execute the
Python command, which opens the Python Interactive shell.
On Windows, that is py -3.
On Mac and Linux, that would be Python 3.10
or Python 3.11 and so on.
So that will open the Python Interactive shell.
Now we have both the command line
where we execute .py files, and the
Python shell where you run code interactively.
That will help with your learning.
So let me quickly demonstrate you if
this is working fine or not.
So I can have the focus in here, it
doesn't matter, and I press that button, but the
code will be sent to that terminal, and this
terminal here is independent of that.
So again, if this is not working,
make sure again to delete everything.
So no terminals, and then don't open a terminal here.
So instead of doing that, let the
terminal be opened using that button.
That way you make sure that this terminal
is connected to the running process of this
file, and then you split the terminal, and
then you have that command to open Python.
Another tip before we close this video,
on the command line where the Windows
or Mac or Linux commands are sent.
So in here, when we run the .py
file, you can clear the terminal using clc.
So write clc there, if you are on Windows. On Mac, it
would be clear or Linux as well.
So CLC press Enter and that will clear the terminal.
So this works on the command
line, not on the Python shell.
Regarding the split window here on the side, you
can see how many terminal panes you have.
So we have this, which is pointing to this on the side,
on the left side, and then the other one on the right.
I would suggest try not to have more than
two terminals here because things can get confusing because
if you press that plus icon, you're going to
have a third terminal which is going to be
hidden behind these two and things will get confusing.
So make sure you always have two.
If you have more, delete everything
and start the process again. Run it.
Run py -3 again and so on.
So with that, you're ready to
program in the next videos.
This will really, really help you with your learning.
So I'll talk to you in the next video.