GETTING STARTED WITH PYTHON INDEX About Python Features

GETTING STARTED WITH PYTHON

INDEX § § § § § About Python Features Advantages Disadvantages Working with Python Interactive mode Script mode Uses of Python Achievement of Python

About python Python is an interpreted high-level programming language for general purpose programming. It was created by GUIDO VAN ROSSUM. It was released in 1991. Why Guido name Python only? Its answer can be found in many articles where Guido accepted that he was a fan of “MONTY PYTHON’S FLYING CIRCUS” , he enjoyed watching this while developing language so he named it.

FEATURES § Python is a multi-paradigm programming language. § Object-oriented programming and structured programming are fully supported § And many of its features support functional programming. § Python uses dynamic typing, and a combination of reference counting and a cycle-detecting garbage collector for memory management. It also features dynamic name resolution (late binding), which binds method and variable names during program execution.

ADVANTAGES 1. 2. 3. 4. 5. 6. 7. 8. Easy to use Expressive language Interpreted language It has completeness Cross-platform language Free and open source Variety of usage/application Beginner’s language

As we can see that python have less disadvantages as compared to C++ and other. Disadvantages 1. 2. 3. 4. 5. 6. Not the fastest language Lesser libraries than C, Java , Perl Not strong on type-binding Not easily convertible Memory consumption Run time error

Working in python Before you start working in python or thinking of becoming pythoneer you need to install Python on your computer. There are multiple Python distributers available today. Ø Default installation available from www. python. org Ø There are many other Python distributions available these days. ANACONDA Python distribution is one of the most recommended.

PYTHYON DOESN’T CHARGE MONEY FOR DOWNLOADING IT , IT IS FREE AND OPEN SOURCE. After installing Python , you are ready to work on it. You can work in python in following different ways : - i. In INTERACTIVE MODE(also called Immediate mode) ii. In SCRIPT MODE NOW WE WILL STUDY THESE IN DETAIL IN NEXT SLIDE

INTERACTIVE MODE Interactive mode of working means if you type the command at a time , and the Python executes the given command there and gives output. In interactive mode , you type the command in front of Python command prompt(>>>) Example =>

USE OF INTERACTIVE MODE – Interactive mode proves very useful for testing code ; you can type the command one by one and you get the result or error one by one. You can display as well as print values in interactive mode, but for script mode, print() command is preferably used to print results.

Script mode In Script mode of working , Python instruction are stored in a file generally with. py extension and are executed together in one go as a unit. The saved instruction are known as Python script or Python program. Example =>

Applications/ uses of python

SUCCESSFUL PRODUCTS of python ØYou. Tube ØDrop. Box ØGoogle ALL OF THESE USES PYTHON LANGUAGE
- Slides: 13