Setup Python in a Local Computer
Let us see how to Setup Python in our Local Computer. We can directly download the latest version of Python from the official website.
After that, we need to install it on our local computer. After a successful installation, IDLE(Integrated Development and Learning Environment) will also be installed on our local computer alongside with some of the packages. For simple programs, we can use IDLE.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
Python programs can also be written in a notepad and run from the command prompt. For this, follow the steps:
- Open the notepad.
- Write the code in it.
- Save the file with the .py extension.
- Open the terminal/command prompt.
- For type in the following command >> py filename.py.
- The output will be displayed.
Example: We have created a file named hello.py with the content print(“Hello world”).
For large and complex programs, it is more convenient to use a smart IDE.
Different IDLE as well as Python Programming Environment
1. Atom (https://atom.io): Atom is a free and open-source text and source code editor for macOS, Linux, and Microsoft Windows with support for plug-ins written in Node.js, and embedded Git Control, developed by GitHub. Atom is a desktop application built using web technologies
2. PyCharm (https://www.jetbrains.com/pycharm/): PyCharm is an integrated development environment used in computer programming, specifically for the Python language. It is developed by the Czech company JetBrains
3. Visual Studio Code (https://code.visualstudio.com): Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git.
4. Spyder (https://www.spyder-ide.org): Spyder is an open-source cross-platform integrated development environment for scientific programming in the Python language.
5. Wing IDE (https://wingware.com): The Wing Python IDE family of integrated development environments from Wingware was created specifically for the Python programming language.
6. Thonny (https://thonny.org): Thonny is an integrated development environment for Python that is designed for beginners. It supports different ways of stepping through the code, step-by-step expression evaluation, detailed visualization of the call stack and a mode for explaining the concepts of references and heap
We can also use online IDEs. Online IDEs are helpful to code from remote locations on a different computer, they are also used if our computer does not have space to download software. We can also share our code online with others.