Python Interactive Shell: An Introduction for Beginners
Join Digital Academy's comprehensive Python development tutorial designed for beginners. Learn how to use the Python Interactive Shell effectively as part of your coding journey.
🔥 Related Trending Topics
LIVE TRENDSThis video may be related to current global trending topics. Click any trend to explore more videos about what's hot right now!
THIS VIDEO IS TRENDING!
This video is currently trending in Bangladesh under the topic 's'.
About this video
🎓 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™ 🎓
***
📖 Blog: http://digital.academy.free.fr/blog
📖 [FULL Course] HOW TO Learn Python? Python Tutorial for Beginners: https://youtu.be/9hvnSZPMtuw
📖 [PLAYLIST] Complete Python Development Course for Beginners: http://digital.academy.free.fr/playlist/python-development-for-beginners
🧑🎓 [COURSE] Python for Absolute Beginners: http://digital.academy.free.fr/courses
📘 [BOOK] Python for Absolute Beginners: https://amzn.to/3NvyOWV
🛒 Shopping and Discounts: http://digital.academy.free.fr/store
💌 Weekly Newsletter for Developers: https://www.getrevue.co/profile/digital_academy
#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/store
✧ http://digital.academy.free.fr/donate
✧ http://digital.academy.free.fr/subscribe
✧ https://www.patreon.com/digital_academy
✧ https://www.buymeacoffee.com/digital_academy
***
Video Information
Views
1.2K
Total views since publication
Likes
19
User likes and reactions
Duration
2:57
Video length
Published
Jan 24, 2021
Release date
Quality
hd
Video definition
About the Channel
Tags and Topics
This video is tagged with the following topics. Click any tag to explore more related content and discover similar videos:
#python development and learning environment #python interactive shell #digital academy #python for beginners #python tutorial for beginners #python check version #python idle #python shell #python code #python first line #python hello world #python first lesson #python print function #first python program #python multiple versions #python prompt #python input #python debug #python cmdline #Python indentation #python code editor #Integrated development environment
Tags help categorize content and make it easier to find related videos. Browse our collection to discover more content in these categories.