Python Training in Pune |
Posted: July 11, 2018 |
Python is a high level Object Oriented Programming language created by Guido Van Rossum. It has a wide range of application in web development like Django and Bottle, in scientific and mathematical computation like Orange, Numpy, Sumpy and also in desktop graphical user interface like Pygame and Panda3d. The syntax of the Python Language is very simple and the code is short which allows us to concentrate on the logic rather than on the procedure of writing the code. Python programs are easily portable. They can run on any platform including windows, MacOS and Linux without making any changes in it. We can easily combine pieces of other programming languages with Python. In this programming language, the user needs not to worry about the memory management or the garbage collection. Python has large number of standard libraries. Methods and Functions in Python: For a list in Python, we have the following methods- 1) .append – to add elements at the end of the list 2) .count – to count the number of elements 3) .insert – to insert an element 4) Pop – to remove an element from list 5) Remove – to remove an element from the list 6) Reverse – to reverse the list 7) Sort – to sort the list Function – a function is a set of instruction that is meant to perform a specific task. We can also give parameters which serve as input for the function. Technogeeks provides Python Classes in Pune where you know more about syntax of function in Python. We begin with def followed by the name of the function and then the parenthesis. We give the arguments in the parenthesis separated by comma which serve as input for the function. Map function – The map function allows us to map a function to an iterable object and then we can call the same function to every item in the iterable.
|
||||||||||||||||||
|