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

Basic Knowledge of Python part 2

Strings using python - Other than numbers python can also handle strings which can be expressed by several ways. In programming a string is a contiguous sequence of symbols or values such as a character string or digit string. Strings is declared in a '....' (single quotes) or "...." (double quotes).     By using  '\n'  you can insert the string to the new line by using  print()  command. For example:  We can concatenate string by using + operator. Concatenate means we can merge two or more separate strings by using + operator. For example: We see another example of multiple concatenate. Here 3*'py' means the string 'py' repeats 3 times and same for the 'thon' string. Now we another method to concatenate two or more strings. In this method you have write strings next to each other without any operator. For example: In the python string is stored in indexes. The index is start from 0 (zero). In python indexes also be calculated from reve...

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 ...

Basic Knowledge of Python part 1

Basic Mathematics equations using Python- As we know python is a simple and easy to learn programming language. In this section we learn how to done mathematics equations using python. To perform this we use our basic operators +,-,/,* .  To perform python we have to open python interpreter. In this interpreter you can type simple equation like 5+5, 4/2 etc. For example: The integer number (e.g. 1,2,3....) have type int and the number with fractional part (e.g. 2.5,2.1,4.5...) have type float. Note:-  The division type always returns float. To get only an integer result of division you can use the // operator and to get remainder from division result you can use % operator. In python you can easily calculate power of the number by using ** operator. Like this you can easily calculate mathematics equation. Now we see how to find area of rectangle. Area = length*width is the formula to find area of rectangle. Here '=' sign is used to store value to the variable. You can als...