Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
32 Cards in this Set
- Front
- Back
Python was created by |
Guido van Rossum |
|
Python is an interpreted language like |
PHP, Perl
It can be used as a scripting language or can be compiled to byte-code for building large applications. |
|
Easy-to-learn |
Python has few keywords, simple structure, and a clearly defined syntax. This allows the student to pick up the language quickly |
|
Easy to read |
Python code is more clearly defined and visible to the eyes.
|
|
Easy-to-maintain |
Easy-to-maintain: Python's source code is fairly easy-to-maintain. |
|
Easy-to-maintain |
Easy-to-maintain: Python's source code is fairly easy-to-maintain. |
|
A broad standard library |
A broad standard library: Python's bulk of the library is very portable and cross-platform compatible on UNIX, Windows, and Macintosh. |
|
Interactive Mode |
Interactive Mode:Python has support for an interactive mode which allows interactive testing and debugging of snippets of code. |
|
Interactive Mode |
Interactive Mode:Python has support for an interactive mode which allows interactive testing and debugging of snippets of code. |
|
Portable |
Portable: Python can run on a wide variety of hardware platforms and has the same interface on all platforms. |
|
Extendable |
Extendable: You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient. |
|
Extendable |
Extendable: You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient. |
|
Databases |
Databases: Python provides interfaces to all major commercial databases. |
|
Extendable |
Extendable: You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient. |
|
Databases |
Databases: Python provides interfaces to all major commercial databases. |
|
GUI Programming |
GUI Programming: Python supports GUI applications that can be created and ported to many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X Window system of Unix. |
|
Extendable |
Extendable: You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient. |
|
Databases |
Databases: Python provides interfaces to all major commercial databases. |
|
GUI Programming |
GUI Programming: Python supports GUI applications that can be created and ported to many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X Window system of Unix. |
|
Scalable |
Scalable: Python provides a better structure and support for large programs than shell scripting. |
|
Extendable |
Extendable: You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient. |
|
Databases |
Databases: Python provides interfaces to all major commercial databases. |
|
GUI Programming |
GUI Programming: Python supports GUI applications that can be created and ported to many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X Window system of Unix. |
|
Scalable |
Scalable: Python provides a better structure and support for large programs than shell scripting. |
|
Python is Object-Oriented |
Python is Object-Oriented: Python supports Object-Oriented style or technique of programming that encapsulates code within objects. IT supports functional and structured programming methods as well as OOP |
|
Other Features |
It provides very high-level dynamic data types and supports dynamic type checking.
IT supports automatic garbage collection.
It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java. |
|
Setting PATH Variable |
Programs and other executable files can be in many directories, so operating systems provide a search path that lists the directories that the OS searches for executables.
The path is stored in an environment variable, which is a named string maintained by the operating system. This variable contains information available to the command shell and other programs.
The path variable is named as PATH in Unix or Path in Windows (Unix is case-sensitive; Windows is not).
In Mac OS, the installer handles the path details. To invoke the Python interpreter from any particular directory, you must add the Python directory to your path. |
|
Setting path at Windows |
To add the Python directory to the path for a particular session in Windows:
At the command prompt : type path %path%;C:\Python and press Enter |
|
Script from the Command-line |
Script from the Command-line: A Python script can be executed at command line by invoking the interpreter on your application, as in the following:
$python script.py # Unix/Linux
or
python% script.py # Unix/Linux
or
C:>python script.py # Windows/DOS Note: Be sure the file permission mode allows execution. |
|
Integrated Development Environment |
You can run Python from a Graphical User Interface (GUI) environment as well, if you have a GUI application on your system that supports Python.
Unix: IDLE is the very first Unix IDE for Python.
Windows: PythonWin is the first Windows interface for Python and is an IDE with a GUI.
Macintosh: The Macintosh version of Python along with the IDLE IDE is available from the main website, downloadable as either MacBinary or BinHex'd files. |
|
Script Mode Programming |
Let us write a simple Python program in a script. Python files have extension .py. Type the following source code in a test.py file:
print ("Hello, Python!") We assume that you have Python interpreter set in PATH variable. Now, try to run this program as follows:
on Windows C:\Python34>Python test.py This produces the following result:
Hello, Python! |
|
Sisters |
At some level both my sisters have similar view of what was happening to me and Karuna. They differ in their opinion on other perspectives. |