Preview

Python Tutoral

Powerful Essays
Open Document
Open Document
2043 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Python Tutoral
PYTHON - QUICK GUIDE http://www.tuto rialspo int.co m/pytho n/pytho n_quick_g uide .htm

Co pyrig ht © tuto rials po int.co m

PYTHON OVERVIEW:
Python is a hig h-level, interpreted, interactive and object oriented-scripting lang uag e.
Python is Interpreted
Python is Interac tive
Python is O bjec t-O riented
Python is Beg inner's Lang uag e
Python was developed by Guido van Rossum in the late eig hties and early nineties at the National Research
Institute for Mathematics and Computer Science in the Netherlands.
Python's feature hig hlig hts include:
Easy-to-learn
Easy-to-read
Easy-to-maintain
A broad standard library
Interac tive Mode
Portable
Extendable
Databases
GUI Prog ramming
Sc alable

GETTING PYTHON:
T he most up-to-date and current source code, binaries, documentation, news, etc. is available at the official website of Python:
Python O ffic ial Website : http://www.python.org /
You can download the Python documentation from the following site. T he documentation is available in HT ML,
PDF, and PostScript formats.
Python Doc umentation Website : www.python.org /doc/

FIRST PYTHON PROGRAM:
Interactive Mode Prog ramming :
Invoking the interpreter without passing a script file as a parameter bring s up the following prompt: root# python
Python 2.5 (r25:51908, Nov 6 2007, 16:54:01)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more info.
>>>

T ype the following text to the rig ht of the Python prompt and press the Enter key:
>>> print "Hello, Python!";

T his will produce following result:
Hello, Python!

PYTHON IDENTIFIERS:
A Python identifier is a name used to identify a variable, function, class, module, or other object. An identifier starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores, and dig its
(0 to 9).
Python does not allow punctuation characters such as @, $, and % within identifiers. Python

You May Also Find These Documents Helpful

Related Topics