What is python?
Python is an interpreted, interactive high-level programming language. It was designed to be effective at handling general-purpose programming demands and it has built a strong community of developers.
Python is often used as a scripting language for system administration and for rapid application development in web development, desktop applications, and elsewhere. It was developed by Guido van Rossum, and released in 1991. Python source code is also available under the GNU General Public License (GPL).
Python supports modules and packages, which encourages program modularity and code reuse.
Today, Python is very high in demand and all the major companies are looking for great Python Programmers to develop websites.
Python is easy to get started with, so you won’t need to learn everything at once. You can start learning right away by using Python on the server or in a coding environment, or set up Python libraries that can read and modify files, connect to database systems, or even create your own web applications.
Let’s Get started with Python
- First Install the python in your computer
- Go to the Python website and download the Windows installer.
- Double click on the downloaded file and install Python for all users, and ensure that Python is added to your path.
- Click on Install now to begin.
- Verify Your Installation.
The most recent major version of Python is Python 3, which we shall be using in this tutorial.
First Python Program
You can create, edit, and save Python files with any text editor.
To create your first Python file, navigate to the folder that you would like to create your file in and create a file called helloworld.py. Next, open this file up in a text editor and type in the following code:
print("Hello, World!")
Save your file, and in the terminal, navigate to the file’s location. Then, run the file by calling python helloworld.py. see the output below:
Hello, World!
Congratulations, you have executed your first Python program!
If you don't have your personal computer or you are not able to install the python in your computer, still you can learn python and run the code with an online editor. There are some online code editors where you can run the code in your browser. Here is a list of some websites that give you an online code editor.
1. Programiz : This is also one of the best python interpreters to run the code online.
2. Geekflare online Compiler: There is no signup required. You can type in your code into the code box and click on 'Run' to execute the program.
3. OneCompiler: It's one of the robust, feature-rich online compilers. Write, Run & Share Python code online using OneCompiler's Python online compiler for free. This python compiler also provides other programming languages compilers, you can just choose the programming language.
4. Python.org/shell : You can also use the python website's code compiler. It works very quickly and easily.
5. Tutorialspoint : Tutorials point provides online-based interpreters for all programming languages. you can also make a project, save it and share it.
Comments
Post a Comment