Python was created by Guido van Rossum in 1990. It has seen regular releases every 6 months with new features and improvements added. It is a versatile, readable programming language suitable for tasks like web development, data analysis, scientific computing and more due to its large library of modules. Major companies like Google, YouTube, NASA use Python extensively in their work.
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
53 views
Application Based Programming in Python Chapter 1
Python was created by Guido van Rossum in 1990. It has seen regular releases every 6 months with new features and improvements added. It is a versatile, readable programming language suitable for tasks like web development, data analysis, scientific computing and more due to its large library of modules. Major companies like Google, YouTube, NASA use Python extensively in their work.
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 16
History of Python
Written by Guido van Rossum
Started work in 1990
First release in 1991
Minor number releases every 6 months
Why Python? Simple yet powerful syntax Portability Readability Vast Support of libraries Software Integration Developer Productivity WHY THE NAME "PYTHON"? According to the principal author (Guido van Rossum), he chose the name "Python" because he is a big fan of the British comedy movie - 'Monty Python's Flying Circus' Installing Python Type http://www.python.org/ at the address bar of any browser and press enter.
Click on Downloads you will see the latest
version of python. You can download by clicking on the latest version number.
*** But, try to download the Python version 3.4
since all the programs of book are written considering version no 3.4. Starting Python in (Command Line ) Mode Press Start button Click all programs then click on Python 3.4. Under Python 3.4 you can see list of python options. Click on Python After clicking on it, you can see the python interactive prompt as follows Continued…. A python command prompt contains an opening message >>>, called as “command prompt”. The cursor at the command prompt waits for you to enter a python command. The cursor at the command prompt waits for you to enter a python command. For example let us write the first statement i.e. print(‘Hello World’) when executed in interactive mode of python command prompt it gives the output of the entered command i.e. for now it prints the message ‘Hello World’. Launching Python Idle The IDLE is graphical integrated development environment for python. The python statements or commands which runs on interactive mode of python IDLE are called as shell. Steps to launch it - Press Start button - Click all programs then click on Python 3.4. and then click on python IDLE. After clicking you can see python IDEL as follows Continue……. A Python interactive shell prompt contains an opening message >>>, called as “shell prompt”. The cursor at the shell prompt waits for you to enter a python command. A complete command is called as “statement”. Following are the commands running on the shell prompt . Executing Python Programs Running python program from a script file is known as running python in “script mode”. steps required to write python programs in python IDLE’S script mode. In python IDLE’s - shell window, click on File and then click on New File or just click CTRL + N.
Enter Python Code Here
First Python Program in Script Mode
Let us consider the simple program to print the messages
“Hello Welcome to Python”, “Awesome Python!” and “Bye” on the console. Write the said statements on to the script mode
After writing save the file and click on Run on to the
menu bar to see the output on the Interactive Mode as follows Working of Python Program Why Do People Use Python? Software quality--Python code is designed to be readable, and hence reusable and maintainable. Developer productivity--Python code is typically one-third to one-fifth the size of equivalent C++ or Java code. That means there is less to type less to debug, and less to maintain after the fact. Program portability--Most Python programs run unchanged on all major computer platforms Support libraries--This library supports an array of application-level programming tasks, from text pattern matching to network scripting. Component integration Who Uses Python Today? Google makes extensive use of Python in its web search systems. The YouTube video sharing service is largely written in Python NASA, Los Alamos, Fermilab, JPL, and others use Python for scientific programming tasks. The NSA uses Python for cryptography and intelligence analysis. What Can I Do with Python? Python’s built-in interfaces to operating-system services make it ideal for writing portable, maintainable system- administration tools and utilities. Python’s simplicity and rapid turnaround also make it a good match for graphical user interface programming. Python comes with standard Internet modules that allow Python programs to perform a wide variety of networking tasks, in client and server modes. there are Python interfaces to all commonly used relational database systems—Sybase, Oracle, Informix, ODBC, MySQL, PostgreSQL, SQLite, and more. Numeric and Scientific Programming What Are Python’s Technical Strengths? It’s Object-Oriented--Of equal significance, OOP is an option in Python. It’s Free Python is completely free to use and distribute. It’s Portable Automatic memory management Python provides commonly used data structures such as lists, dictionaries, and strings as intrinsic parts of the language; as you’ll see, they’re both flexible and easy to use. It retains a remarkably simple syntax and design. The result is a powerful programming tool with all the usability of a scripting language Conclusion Python is general purpose, interpreted and objects oriented programming language You can enter Python statements interactively from the Python prompt >>> Python Programs can be written on the script mode and commands can be executed on the interactive mode.
Python Programming: 8 Simple Steps to Learn Python Programming Language in 24 hours! Practical Python Programming for Beginners, Python Commands and Python Language
Python Programming: 8 Simple Steps to Learn Python Programming Language in 24 hours! Practical Python Programming for Beginners, Python Commands and Python Language