Introduction to Python Programming

 What is Python?

Python was developed by Guido van Rossum. Guido van Rossum started implementing Python in 1989. Python is a very simple programming language so even if you are new to programming, you can learn python without facing any issues.If you have no prior knowloedge in programming I will suggest you read more on introduction to programming from here

Interesting fact: Python is named after the comedy television show Monty Python’s Flying Circus. It is not named after the Python snake

Features of Python programming language

1.Readable: Python is a very readable language.

2.Easy to Learn: Learning python is easy as this is a expressive and high level programming language, which means it is easy to understand the language and thus easy to learn.

3.Cross platform: Python is available and can run on various operating systems such as Mac, Windows, Linux, Unix etc. This makes it a cross platform and portable language.

4.Open Source: Python is a open source programming language.  

5.standard library: Python comes with a large standard library that has some handy codes and functions which we can use while writing code in Python.

6.Free: Python is free to download and use. This means you can download it for free and use it in your application. See: Open Source Python License. Python is an example of a FLOSS (Free/Library Open Source Software), which means you can freely distribute copies of this software, read its source code and modify it.

7.Supports exception handling: If you are new, you may wonder what is an exception? An exception is an event that can occur during program exception and can disrupt the normal flow of program. Python supports exception handling which means we can write less error prone code and can test various scenarios that can cause an exception later on.

8.Advanced features: Supports generators and list comprehensions. We will cover these features later.

9.Automatic memory management: Python supports automatic memory management which means the memory is cleared and freed automatically. You do not have to bother clearing the memory.

What Can You Do with Python?

You may be wondering what all are the applications of Python. There are so many applications of Python, here are some of the them.

1. Web development — Web framework like Django and Flask are based on Python. They help you write server side code which helps you manage database, write back-end programming logic, mapping urls etc.

2. Machine learning — There are many machine learning applications written in Python. Machine learning is a way to write a logic so that a machine can learn and solve a particular problem on its own. For example, products recommendation in websites like Amazon, Flipkart, eBay etc. is a machine learning algorithm that recognizes user’s interest. Face recognition and Voice recognition in your phone is another example of machine learning.

3. Data Analysis — Data analysis and data visualization in form of charts can also be developed using Python.

4. Scripting — Scripting is writing small programs to automate simple tasks such as sending automated response emails etc. Such type of applications can also be written in Python programming language.

5. Game development — You can develop games using Python.

6. You can develop Embedded applications in Python.

7. Desktop applications — You can develop desktop application in Python using library like TKinter or QT.

8. Web scraping — You can develop a bot and scrape any website in python

Why Python?

  • Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
  • Python has a simple syntax similar to the English language.
  • Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
  • Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
  • Python can be treated in a procedural way, an object-oriented way or a functional way.

Good to know

  • The most recent major version of Python is Python 3, which we shall be using in this tutorial. However, although Python 2 is still quite popular. 
  •  In this tutorial Python will be written in a text editor. It is possible to write Python in an Integrated Development Environment, such as Thonny, Pycharm, Netbeans or Eclipse which are particularly useful when managing larger collections of Python files.

Python Syntax compared to other programming languages

  • Python was designed for readability, and has some similarities to the English language with influence from mathematics.
  • Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses. 
  • Python relies on indentation, using whitespace, to define scope; such as the scope of loops, functions and classes.
  • Other programming languages often use curly-brackets for this purpose. 

     How to install Python

    Python installation is pretty simple, you can install it on any operating system such as Windows, Mac OS X, Ubuntu etc. Just follow the steps in this Video install python. 

     

Thank you for taking your time to read this post please subscribe to my youtube channel to help me grow and remember to leave a comment below if you have any issue on this or you have any topic you want me to write about.

Post a Comment

0 Comments