Skip to main content

Python Programming

                                       

Introduction about Python 


Python was created by Guido van Rossum and it was first released in 1991, it has considered as the top ten programming language in the TIOBE Programming Community Index, Python is the easiest programming language for beginners, it is a powerful tool in different platforms like HTML, Application Development, Machine learning, etc. Coding in Python is very simple compared to other Object-Oriented languages, it is easy to understand the code and easy to write.

Python is an interpreter  (which means it execute the code line by line, there is no need of compiling as a group of code) and it is a freely available opensource library available for all operating systems in   https://www.python.org/, in this same website you can find different tools, programs, and additional details.

It is a high-level and general-purpose programming language, It has the same types of data structure and functions which are available in languages that are capable of c language.


A simple example for python programming


           Input:  a=5

                        b=6


                        c=a+b

                        d=a*c

                        print(c,d)


             Output: 11 55






Uses of Python 


Python is widely used because it reduces memory and time consumption when comparing to other programming languages like c or java, it also used mainly used in creating complex algorithms.

Python is the best scripting language in web applications, it contains different types of libraries such as  NumPy, SciPy, Matplotlib, Biopython, Astropy, SageMath, etc.

The  Organizations that are using python are 


1)Google,

2)NASA,

3)Yahoo!

4)Facebook

5)Instagram

6)Amazon and more.

Python is commonly used in Artificial Intelligence and Machine Learning projects by liberties like TensorFlow, PytorchScikit-Learn, etc.



Advantages in using python language


1)Python is a high-level language, which is in the form of English syntax that helps the user to read it and understand like reading English.


2)python is easy to learn for beginners even if they are not from this background.


3)When Python is compared with other languages it is very easy to write and smaller in size. It takes less time when comparing to other programming languages doing the same task.


4)It is an interpreter which means that even if there is an error while executing the code in one line, it just marks it as an error and execute other codes, which make debugging easier, whereas in other languages which uses a compiler when an error occurs in the main function or a sub-functions it won’t execute it was an error.


5)In python while executing code there is no need to enter the datatype it can be a writer like sentence by following the syntax it is like a dynamic type which will identify by itself, but in other programming languages while writing a code we have to enter the type of data in the main function.


6)python contains different kinds of libraries, which would be helpful for different purposes. It contains almost 200,000 packages.


Summary


Python is the easiest and simple programming language, which can be easily learned by everyone. It has been a great choice for many professionals. Even though some disadvantages, it has more advantages, Even Google and many other organizations have also made python a primary language.

                                



                                                                                                                         

Comments

Popular posts from this blog

A Useful information about Python programming language for Beginners

Summary About the Python Blog                             In the below-given link, you can know about the useful information about Python programming language  https://megrathdinold.blogspot.com/p/python-programming.html  , https://megrathdinold.blogspot.com/p/data-structures-in-python.html   Which is mainly important in Machine learning, AI, and Deep Learning. Which describes about Python, Advantages of Python, and uses of python. It also makes you understand the exact difference in Python when compared to other programming languages. It also makes you understand what is the use if we learn the Python Programming language. I have posted the blog in the above link, for the beginners in a short message, which makes you move forward to learn Python programming with confident.                                     ...

Sets - Data type in python

Set                     Set is also one of the Data structure in python, the set is ever simple to understand, it also contains curly bracket ‘{}’ , but the only thing it will not accept duplicate value which is the same values. Let’s understand by code, Input: D = {20, 42, 111, 20, 434, ”uk”} type(D) Output: set Input: D Output: {111, 20, 42, 434, ”uk”}‘ Input: D[3] Output: --------------------------------------------------------------------------- TypeError                                 Traceback (most recent call last) <ipython-input-48-846febc3581b> in <module> ----> 1 D [ 3 ] TypeError : 'set' object is not subscriptable                            ...

Tuple - Data type of python

  Tuple                              The tuple is one of the data structures in python. A tuple is used to store multiple values in a variable, but the values after once entered cannot be changed, that’s why it is called immutable. For example, just consider that, you have gone to a restaurant or a hotel, so to pay the money you will get a bill which contains price, tax, etc, the values which are entered in these variable, like price, tax, etc… can not be change cone it is printed, likewise in ‘tuple’ when the values are entered once it cannot be changed. the tuple is represented as curve becker ‘()’ . Let us try with an example Input: Hotel_bill = (10,20,22,) Hotel_bill Output: (10, 20, 22) Input: type(hotel_bill) Output: tuple Input: hotel_bill[2] Output: 22 ...

Dictionary - Data type of python

  Dictionary Dictionary is one of the data structure in python, which holds a value with a key, it acts as an address book, for example just consider that while you apply ar fill different forms for the admission, each form is identified with a different name, and in the form, each column has a label, like (“Age:-_23_), here the name of the form is considered as a variable to store information, the ‘Age’ is considered as the keyword, and ‘23’ is considered as the value entered to the ‘keyword’ for  ‘Age in the inside the variable form. It is denoted by curly bracket ‘{}’. Lets try with an example Input: A = {} type(A) Output: dict # dict is the short cut for Dictonary. Input: A[‘what is your name’] = ‘jack’ A Output: {‘what is your name’ : ‘jack’} Input: A[‘what is your name’] Output: ‘Jack’ Input: A[‘jack’] ------------------------------------------------------------------------...

List - Data type in python

  List                       A ‘list’ one of the data structure in Python, which holds different data in order for example: Just imagine that when you are going to a store to get at least ten or twenty different products, so if you memorized all the name of different products in the mind, you might get confused or forget in-store while shopping, So instead of getting forget or confused you would store all the in a list, whereas in Python List is used to store data in a sequence manner. In Python, while writing a list you have to write the value inside the square bracket “[]” , which makes the Python interpreter understand that you are specifying a type ‘list’. After creating a list, you can add, remove, and search for any items in the list. Due to the capability of adding and removing the data in a list, it is also known as “ Mutable data type ”, which means this data can be altered. Input: Th...

Data Structure in python

  Data Structure in python  The data structure is one of the different and a special type of formate that is used for storing, processing,  retrieving , and, organizing the data. In other words, we can say that data structure is one of the techniques used to hold the data and use the data in an effective way , it is about rendering the data elements in terms of relationship, for better organizing and storing the data. Data structures are used in different field like  1) Artificial Intelligence 2)Graphics 3)Compiler design 4)Numerical Analysis 5)Simulations 6)Database Management System 7)Statistical Analysis Package 8)Opertating System Types of Data Structure and their uses  In Python it has four data structures, they are  1) List 2) Tuple 3) Dictionary and 4) Set.       Thank You