Python Interactive Shell (Integrated Development Learning Environment)

🎓 Welcome back to Digital Academy, the Complete Python Development Tutorial for Beginners, which will help you learn Python from A to Z!

🖥️ Python Interactive Shell (Integrated Development Learning Environment)

Now that you have downloaded and installed Python, Let’s do a quick sanity check, to ensure everything is correctly set up, then watch the next video and practice for hours!

Open the Python’s built-in Integrated Development and Learning Environment (IDLE), also known as the Interactive Python Shell. It is one of the mediums of communication, between the Python Interpreter and YOU.

To do so, just open your terminal and type: python, if you only have one version of Python installed. If multiple versions of Python already exist, you may have to manually run python3 (or python2).

The Interactive Python Shell should open, and your command prompt, or terminal window, should look similar to this:

Python 3.7.6 (default, Dec 30 2019, 19:38:26)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.


You may not get the first couple of lines exactly as shown above, since everyone has different computers, versions, and even builds. As you have probably guessed, the interpreter tells us the Python version, date of build, the compiler used to build it, the computer’s architecture, and the operating system. This information is important for debugging. And it is very useful for checking Python’s version.

The most important thing, that you will need to remember, are those three greater-than signs. They symbolize a prompt, that asks you for some input. Since this prompt is shown in a few examples, you will need to remember that it is not some special keyword, or thing you would need to type on a daily basis.

While you are still in the Interactive Python Shell, you might as well run your first line of code: print(“Learning Python with Digital Academy is fun!”)

Once you typed Enter, your code is being executed and interpreted, then you should see “Learning Python with Digital Academy is fun!”

As you can see, a newline without the prompt is Output. Another important thing to know, is that the prompt changes to three periods (…), if you enter a command with indentations, since the Python interpreter is expecting more input. Overall, you will need to be careful not to mistake the prompt, for actual Python code.

if True:
... print("Like, Comment & Share!")
...
Like, Comment & Share!


And that’s it! Congratulations! You have just written your first Python program! Each time you entered a line, Python immediately executed the statement, displaying the value between the quotes.

Once you are done, you can type exit() or quit(), to leave the Interactive Python Shell. You can even use the keyboard shortcuts keys: Ctrl+D, then press Enter.

Let’s play this video, stick around and watch until the end of this video! 👍🏻

– Digital Academy™ 🎓

***

☞ WATCH NEXT:
○ HOW TO Learn Python? Python Tutorial for Beginners [FULL Course] https://youtu.be/9hvnSZPMtuw

📖 Blog: http://digital.academy.free.fr/blog

📖 Complete Python Development Course for Beginners [PLAYLIST]: http://digital.academy.free.fr/playlist/python-development-for-beginners

#Python #Tutorial #Beginners #Shorts

***

♡ Thanks for watching and supporting ♡
Please Subscribe. Hit the notification bell.
Like, Comment and Share.

***

♡ FOLLOW US ♡
http://digital.academy.free.fr/
✧ https://twitter.com/DigitalAcademyy
https://www.facebook.com/digitalacademyfr
https://www.instagram.com/digital_academy_fr/
https://www.youtube.com/c/DigitalAcademyOnline

♡ SUPPORT US ♡
http://digital.academy.free.fr/join
http://digital.academy.free.fr/donate
http://digital.academy.free.fr/subscribe
https://www.patreon.com/digital_academy
https://www.buymeacoffee.com/digital_academy

***

Copy link
Powered by Social Snap