#PythonInterpreter #RunningPythonCode #interpreters #code #cmd #course #coursera
free course site link here #https://bestmindlike.blogspot.com/
In this lecture, I'll show you how to run or execute Python code.
There are several ways and we'll take a look at each of them.
First, if you want to test some basic concepts or execute just a few python instructions, you can
write and execute them directly in the Python interpreter.
And here you have two options.
The first option is to open the interpreter from Windows Command Line or CMD and on the right, all python
instructions there.
Even if it works perfectly, this isn't recommended, or at least not for beginners, this is because
it lacks advanced features like auto-completion or color highlighting of Cusack's or errors.
It will be harder for you to write your code here.
However, this is how it's done.
I got to start by ACMD and hit Enter.
Now I write Python and press the enter key.
The Python interpreter has just started, and here we can execute our python instructions.
The second option, when executing Python, using the Python interpreter, is to use Eitel, which stands
for Integrated Development into a learning environment on Windows.
Ideal came by default with Python installation.
So each of them.
To open idle, just pipe in idle in Windows, Linux, or Mac Start menu.
And you'll see something like this, this is a python shell or interpreter where you can write and execute
short scripts and see their output immediately in real-time.
Each line starts with three greater than signs.
And this is either command prompt.
Throughout this course, when we see three greater than signs, we'll know that the code has been executed
in Python either.
Let's write something very simple like print Hello, Python.
Congratulations, this was your first Python script.
Now let's do something else.
X equals six X.
What I did is that I created a variable called X that is equal to six and then pointed out the X value in
Python Idel, it's not necessary to use the print function to see the value of a variable.
You can just type in X and then of course you can also use the print function.
Sur cette page du site, vous pouvez voir la vidéo en ligne Running Python Code using the Python Interpreter durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Best Mind Like 02 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 7 fois et il a aimé 0 téléspectateurs. Bon visionnage!