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

  • Satisfactory Essays

    Pascal was invented in 1970 by niklaus wirth a small but very precise language meant to promote good programming practices.…

    • 388 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    NT2670 Lab1 2

    • 1472 Words
    • 7 Pages

    Each lab in this manual requires that you answer questions, save images of your screen, or perform other activities that you document in a worksheet named for the lab, such as lab1_2_worksheet. Your instructor will provide you with the worksheet files that you must complete for each lab. As you perform the exercises in each lab, open the appropriate worksheet file using WordPad, fill in the required information, and save the file to your…

    • 1472 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Each lab in this manual requires that you answer questions, save images of your screen, or perform other activities that you document in a worksheet named for the lab and task, such as lab3_1_ worksheet. Your instructor provided you with lab worksheets. As you perform the tasks and exercises in each lab, open the appropriate worksheet file using WordPad, fill in the required information, and save the file to your computer’s Student##\Documents folder. Print a copy for your instructor.…

    • 1638 Words
    • 8 Pages
    Satisfactory Essays
  • Good Essays

    An identifier is just like a variable which can hold different values. Identifiers in M# cannot have a number/digit in them. All characters in an identifier must be in small-case.…

    • 703 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    After typing the above command press A (Capital a). You will see the below output.…

    • 537 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    And “Open elevated command prompt” Basically, this means running Command Prompt with administrator privileges. Just learned from this lab.…

    • 298 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Pt1420 Unit 1 Assignment 2

    • 1305 Words
    • 6 Pages

    Das, D., Gregersen, E., Hosch, L., Lotha, G., Sampaolo, M., Sinha, S. (2014). C++. In Encyclopedia Britannica.…

    • 1305 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    I hope that you find this handbook informative and user-friendly, but if you need any…

    • 11151 Words
    • 45 Pages
    Powerful Essays
  • Satisfactory Essays

    IF You Want To Purchase A+ Work Then Click The Link Below , Instant Download…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Identity is whatever makes one definable and recognizable, in terms of possessing a set of qualities or characteristics, that distinguishes one from others. One’s identity is unique and ever-changing, interpreted dissimilarly from different points of view and influenced subconsciously by a number of exterior factors rather than consciously by oneself. Teachers and fellow students, it is this which makes the concept of “Searching for Identity” so captivating and enthralling.…

    • 1340 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    what ever

    • 1175 Words
    • 5 Pages

    Three employee initials; the number of hours worked; the hourly rate of pay for the employee. Calculate and output the employee's gross pay, deductions, and net pay. Deductions include the following:…

    • 1175 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Ethan Frome Symbolism

    • 554 Words
    • 3 Pages

    As in any classic novel, each detail signifies something deeper than what is stated in plain text. In Ethan Frome, Edith Wharton represents the setting in symbolic ways that are essential to the central themes of loneliness, isolation, and the struggle between morality, desire, and finding the happiness in both. Ethan marries Zeena for convenience, not for love, and out of him believing he has found love for Mattie, the central conflict emerges. Does he remain with Zeena, the woman he has made vows to stay with through sickness and health, or does he pursue Mattie, the vibrant young woman who shows Ethan true happiness? Wharton uses different settings symbolically to portray Ethan’s feelings and the circumstances between each woman.…

    • 554 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Is the information current? When was the information published or last updated? (Might there be resources with more current information?)…

    • 1059 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Cultural Studies 1st Exam

    • 1576 Words
    • 9 Pages

    Identifications (Write the correct terminology or name in the space provided by each statement. Some terms may not be used.…

    • 1576 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Research Sources

    • 851 Words
    • 3 Pages

    Is the information current? When was the information published or last updated? (Might there be resources with more current information?)…

    • 851 Words
    • 3 Pages
    Satisfactory Essays

Related Topics