Python Tutorial || Introduction with Python

Introduction to Python Programming

Python is created by Guido van Rossum. Guido van Rossum began actualizing Python in 1989. Python is a basic programming language so regardless of whether you are new to programming, you can learn python without confronting any issues.

Features of Python:

  • Easy to code
  • Free Open Source
  • Object-Oriented Language
  • GUI  Programming support
  • High Level Language
  • Cross Platform
  • Exception Handling

What can you do with Python?

You might be thinking about what all are the utilizations of Python. There are such a significant number of utilizations of Python, here are some of them.

Web advancement – Web structures like Django and Flask depends on Python. They assist you with composing server-side code which encourages you to oversee database, compose backend programming logic, mapping URLs, and so on.

Artificial Intelligence(AI) – There are many AI applications written in Python. AI is an approach to compose a rationale with the goal that a machine can learn and take care of a specific issue all alone. For instance, items suggestion in sites like Amazon, Flipkart, Myntra and so on is an AI calculation that recognizes the client’s advantage. Face acknowledgment and Voice acknowledgment in your telephone is another case of AI.

Data Analysis – Data Analysis and Data Visualization are a type of graphs that can likewise be created utilizing Python.

Scripting – Scripting is composing little projects to computerize basic assignments, for example, sending mechanized reaction messages and so on. Such sort of utilizations can likewise be written in Python programming language.

Game turn of events – You can create games utilizing Python.

You can create Embedded applications in Python.

Work area applications – You can create work area applications in Python utilizing a library like TKinter or QT.

Why Python?

The community of Python developers is continually developing and the amount of libraries for the language is developing also. Everything makes Python one of the most adaptable programming dialects on the planet which can without much of a stretch fit any undertaking. In any case, we have to specify that Python is exceptionally mainstream in the logical zone. Particularly in Data Mining and Machine Learning programs.

Python has an enormous network that will in general build up this programming language. Nowadays, it’s not unexpected to utilize Python for FinTech, Data Science, Machine Learning, etc. Accordingly, such giants as Google, Yandex, and Dropbox bolster this innovation and make large task utilizing Python.

Python Installation:

Numerous PCs and Macs will have Python already installed.

To check whether you have Python already installed on your Windows PC, look at the start bar for Python or run in the following in the Command Line(cmd.exe):

C:\Users\Your Name>python --version

To check whether you have python installed on a Linux or Mac, then on Linux open the command line or on Mac open the Terminal and type:

python --version

If you find that you don’t have python introduced on your PC, at that point you can download it for free from the accompanying site: https://www.python.org/

Setup:

  • Select the version of Python to be installed. We recommend you download the latest version of Python i.e. Python3 or more.
  • Download Python Executable Installer.
  • Run Executable Installer.
  • Verify Python was installed or not from python.exe
  • Verify pip is installed.
  • You can add Python paths to Environmental Variables.
  • You can install a virtual.

Here we explained to you how to install Python 3.7. If you are installing a different version, you can continue with the same process.

Execute your first Python Program:

Python is an interpreted programming language, this implies as a developer you compose Python (.py) file in a text reader and afterward put those documents into the python mediator to be executed.

The best approach to run a python program resembles this on the command line:

C:\Users\Your Name>python helloworld.py

here “helloworld.py” is the name of your Python file.

Now you can write your Python program in any text editor:

print("Hello World!!")

Save your file. Open your command line, navigate to the directory where you saved your file, and execute the program using the following command:

C:\Users\Your Name>python helloworld.py

Output should be:

Hello World!!

Congrats, you have composed and executed your first Python program.