How to Getting Started with Python Programming
July 15, 2021 2022-12-18 5:37How to Getting Started with Python Programming
How to Getting Started with Python Programming
How to Getting Started with Python Programming
Getting started with Python is very easy one step than starting another programming language like C, C++, etc. In this article, you will be clear that what is Python, how you can download/install python on windows, Mac, and Linux operating systems. As we have published different articles related to Python as creating websites with Python, Python Real-world application, full-stack development with Python, etc. Those are advanced python tutorials, but you can start that from this article because this article is for beginners students. So let’s start to learn!
Prerequisite before getting started with Python
Most of the Universities have C++ basic programming in their syllabus, as C++ is the basic programming language, if a beginner learns programming basic, then it will be easy to learn another computer language. But we are talking about Python that which prerequisite for getting started with Python, in fact, there is no need to learn prerequisites for Python, you can start it when you want. It will be best for you if you have knowledge and concept about Loops, if-else structure, input-out statement, functions, etc.
Python installation on Window
If you want to install Python on Windows, you have to follow the below steps. We have published a complete tutorial on how to install Python you can read that tutorial if you want to get more information.
- Go to Python official website python.org
- Download the Python executable file
- Double click on the executable file as you have downloaded
- A window pop-up will appear showing you two checkboxes, 2nd check box, you have to check. with the label ” Add Python 3.version to PATH”
- A progress bar will display
- After completion of the progress bar, you will see a message that python is successfully installed
- You can verify that wheater python is installed or not in your system
- Open CMD and type python and press enter, if you get python related information as to its versions etc it means python is installed successfully in your system
- Now open cmd and type print(“hi”) and press enter you will get “hi” in the cmd command prompt, which means Python is working fine
- Congratulations!
Python installation on Mac
- Follow these steps to download the full installer:
- First of all, you have to go to python.org python official website
- And download the python for Mac operating system, you can visit directly through the following link
- Click here if you want to direct to download: Downloads page for macOS
- In the “Python Releases for Mac OS X” heading, You have to download the Latest Python 3 Release. This time latest version of Python is 3.9.6.
- Then scroll to the bottom and find mac specific Python installer as macOS 64-bit installer. Click and downloading will be started.
- After finishing installation then move to the next point
- Go do download folder where your python executable file is saved after complete downloading
- Double click on that downloaded file
- Pressing Continue a few times, until you will be asked that agree with the software license agreement (SLA). Then click on Agree.
- Then you have to set the destination where you want to install and require space. Most of the time, you have to click install with the default location.
- Now installing is a start, after finishing the installation then click on the close to installer window.
- You have installed Python 3 on your mac Operating system computer
- Congratulations
Run First Python Program
- After the installation in Python, you have to go to open a cmd command prompt and write a basic code line of Python as a print(“hello world”) and press enter if you get “hello world” below this code of line, it means your python is working fine. It is your first program
- On another hand, if you want to write a Python code in IDE then you have to download Visual Studio Code or Pycharm any other you want, but most experts recommend Visual Studio Code.
- After downloading and installation of Visual Studio Code, you have to open it and install an extension for Python.
- Then write the same code as you have written in cmd as a print(“hello world”) then save the file in any location you want, giving the file name with .py extension as fileName.py.
- As Visual Studio Code has a terminal below the code writing area, you have to just type python fileName.py and then press enter you will get the same output as you got in cmd “hello world” in terminal.
What we can do with Python
You should know Python is the most famous and top programming language which is the general purpose and high-level language. We can build any kind of system as recently technologies needs. The following are the fields in which Python is used to build a variety of modules and functionality as the system need.
- Data Science
- Data Analytics
- Game Development
- Language processing
- Image, video, and audio processing
- Mobile Application
- Desktop Applications
- Artificial Intelligence
- Machine Learning
- Face Recognition
- Speech Recognition
- Robotics
- Language development
- Building Systems Software
- Web Development
- Business and Engineering projects
- Data Visualization
- Finance Application
Conclusion
To getting started with Python in this article we have discussed, if you want to learn other languages like C++, PHP, etc you will say that Python is a very easy and simple programming language than another. Because other programming languages have strict rules and regulations like semicolons, curly braces, etc But in Python, you can free to write code just care of indentation. So good luck with the Python programming language!
If you have any questions/confusions/suggestions/ideas/knowledge while reading this article, then share with us. We will appreciate your effort and provide you the best solution if you have any problems.
If you use Facebook, Twitter, Pinterest, LinkedIn, or other social media platforms, then share this tutorial, if you share, more students will take the chance to learn.
Recommended Python Tutorials
Python Programming Language Features and Power
100% Complete | Web Development with Python