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 | Control Flow Tools

Control Flow Tools In this session we will see about control flow tools of python. 1) if Statement:- In the programming language if statement is important statement. Now we see how to write if statement in the python program. For Example:- >>> x = int(input("Please Enter an integer")) Please Enter an integer 50 >>> if x<0:      x=0      print("Negative change to zero") elif x==0: print("Zero") elif x==1: print("One") else: print("More") More >>>  Here is the program of if statement. You can add one or more elif part in the program. else part is the optional.      In the program we take the value of x is 50. In the if statement we write x<0 condition which is false because 50 is not less than 0 so it will go to the next part of the code which is first elif part, here we give condition x==0 this condition is also false so it will go to the second elif part which is x==1 this condition is also f...

Python | Data Structure or Data Types (String)

Data Type Of Python I n the last session we discus about what is the data type of python. And we see List data type. In this session we s ee the next data type String.     2) String- String is a ordered collection of immutable data type. String are iterable and hashable. Strings are always declared in single or double quotes.  Single line string:- S = "Python" Multi line string:- S = """ Line 1             Line 2             Line 3 """ Iterable:- S= "Program" for i in S:       print(i) Output:-  P  r  o  g  r  a  m Membership:-  print( 'p' in S) => True print( 'P' not in S) => False Methods of string:- capitalize() :-  It return the capitalize version of the string. More specifically it make the first character have uppercase and rest lowercase. For example:- S = "hello World" print(S.capitalize()) => "Hello world" count(substring, start,en...