Skip to main content

Python | Introduction



Python is developed by Guido van Rossum. Guido van Rossum started implementing python in 1989. Python is very simple programming language so if you are new to programming, you can learn python without facing any issue.

Features of Python

  1. Free and Open Source -                                                                                     Python is a open source language. We can easily install python.It is freely available at python's official website.

  2. High level language -                                                                                            Easy to learn and use that means it is user friendly programming language. Python language is more expressive means that it is more understandable and readable.

  3.  Interpreted language-                                                                                        Python is a interpreted programming language means that python code directly runs from its source code. There is no compiler to compile python source code. In interpreted programming language the execution of the program is done by line-by-line.

  4. Object Oriented Language -                                                                              Python supports object oriented language and concepts.

  5. Interactive language -                                                                                        Python interacts with other programming language like C,C++,Java etc.

  6. Automatic memory management -                                                                    Python support automatic memory management means that if the values or data of the variable are same it allocates single memory block.

  7. Garbage collector -                                                                                            Python has garbage collector that means it removes unused memory blocks.

  8. Large standard libraries -                                                                                   Python has large amount of libraries and provides set of modules and functions for application development.

  9. GUI programming support -                                                                          Graphical user interface can be develop by using python.


Comments

Popular posts from this blog

Python | Data Structure Or Data Types (Sets)

Data Type Of Python In this section we will see new data type which is Sets. 3) Sets:- Set object is an unordered collection of distinct unhashable object. The common user include membership test removing duplicate from a sequence and computing mathematical operation such as intersection, union, differences etc.     Being an unordered collection set do not record element position or order of insertion. Accordingly set do not support indexing, slicing, stepping or other sequence like behavior.      We declare a set by using curly braces {}. Note:- Set can only store immutable data. Empty set:-  S = set() Set with multi element:- S = {10, 'Hi', (10, 20)} Membership:- print(10 in S) => True print(20 in S) => False Iteration:- for i in S:       print(i)  => 10       'Hi'       (10,20) Type casting:- S = "Programming" S2 = set(S) print(S2) => {'p', 'r', 'o', 'g', 'a', 'm', 'i', 'n'} In the ...

Python | Data Structures or Data Types (List)

Data Type of Python In Python there are two types of data types which are Mutable and Immutable. Mutable data type contains List and Dictionary data types. And Immutable data type contains String,Tuple and Sets data types. Now we see what is Mutable and Immutable data type? The main object get changed permanently after applying methods of data type this data type is called as Mutable data type. And the main object will not be changed permanently after applying methods of data type this data type is called as Immutable data types. Now we see data types one by one! 1) List - List is an ordered collection of mutable datatype. Lists are hashable, iterable. List contain any kind of data. List are declared in square braces[]. Empty List-  L = [ ] List with multiple elements -  L1 = [10, 15.10, 'Python', [10,20] ] In the above list you can add any data type as shown above. In list L1 there is Integer, float,String,list data types. To add string data type you must have to declared in ...