• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Python
 

Python

on

  • 1,369 views

 

Statistics

Views

Total Views
1,369
Views on SlideShare
1,319
Embed Views
50

Actions

Likes
0
Downloads
36
Comments
0

1 Embed 50

http://developersmix.wordpress.com 50

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Python Python Presentation Transcript

    • H P M.Gebreel D ev M ix
    • Minute of silence :((
      • All copyrights reserved for M. Gebreel(Harry Potter)
    • Introduction to All copyrights reserved for M. Gebreel(Harry Potter)
    • Python ??!! what is that ?? All copyrights reserved for M. Gebreel(Harry Potter) All copyrights reserved for M. Gebreel(Harry Potter)
    • Is this ??!! All copyrights reserved for M. Gebreel(Harry Potter)
    • I am afraid All copyrights reserved for M. Gebreel(Harry Potter)
    • No absolutely no :D :D
    • Simply programming language
      • Scripting Language
      • Interpreted
      • Object-oriented
      • high-level programming language
      All copyrights reserved for M. Gebreel(Harry Potter)
    • Python Not named after This man …... Guido van Rossum All copyrights reserved for M. Gebreel(Harry Potter)
    • All copyrights reserved for M. Gebreel(Harry Potter)
    • At Anyway
      • Why python ??
      • What will make me learn it ??
      • Or
      • Why I love python :D :D ??
      All copyrights reserved for M. Gebreel(Harry Potter)
    • Really love it
      • Python is powerful... and fast
      • #batteries included #ur web server in 3 lines
      • Python plays well with others
      • #(Jpython)Python for the Java Virtual Machine
      • # (Ironpython)Python for .NET
      • Python runs everywhere
      • Python is friendly... and easy to learn
      • Python is Open
      Answer is here All copyrights reserved for M. Gebreel(Harry Potter)
    • Hello world
          • Python 2.7
              • Print “ hello world”
          • Python 3.1
              • Print (“hello world”)
      All copyrights reserved for M. Gebreel(Harry Potter)
    • The interactive interpreter
      • All copyrights reserved for M. Gebreel(Harry Potter)
    • Data types
            • Strings
            • Int
            • bool
            • float (only one real type)
            • complex
            • files
      All copyrights reserved for M. Gebreel(Harry Potter)
    • Attention plz Python speaks now : Do not tire yourself by writing type of the object I will know it by myself ;) All copyrights reserved for M. Gebreel(Harry Potter)
    • Everything is an Object >>> x = 'hello, world' >>> y = x.upper() >>> y 'HELLO, WORLD!' >>> import calendar >>> cal = calendar >>> print cal.month(2007,10) All copyrights reserved for M. Gebreel(Harry Potter)
    • Unusual Suspects long — automatic promotion from int if needed >>> x = 1024 >>> x ** 50 32733906078961418700131896968275991521 6642046043064789483291368096133796404674554883270092325904157150886684127560071009217256545885393053328527589376L All copyrights reserved for M. Gebreel(Harry Potter)
    • Built-in data structures
      • Tuples – Fixed Length
      • (1, 2, 3, “Hello”, False)
      • Lists
      • [1, 2, 4, “Hello”, False]
      • Dictionaries
      • {42: “The answer”, “key”: “value”}
      • Sets
      • set([“list”, “of”, “values”])
      All copyrights reserved for M. Gebreel(Harry Potter)
    • Functions
      • Python uses whitespace to determine blocks of
      • code (please don't use tabs)
      • EX:
      • def greet(person):
      • if person == “Tim”:
      • print “Hello Master”
      • else:
      • print “Hello %s” % person
      All copyrights reserved for M. Gebreel(Harry Potter)
    • Classes class MyClass: """This is a docstring.""" name = "Eric" def say(self): return "My name is %s" % self.name instance = MyClass() print instance.say() All copyrights reserved for M. Gebreel(Harry Potter)
    • Modules
      • Any python file is considered a module
      • Modules are loaded from the PYTHONPATH
      All copyrights reserved for M. Gebreel(Harry Potter)
    • Exceptions Also used for flow control – StopIteration Exceptions are classes, and custom exceptions are easy to write to store extra state information EX: try: # Do stuff except Exception, e: # Do something else All copyrights reserved for M. Gebreel(Harry Potter)
    • Stop !!!! Wanna more ;) Check Out These Links http://docs.python.org/tut/tut.html - The Python Tutorial http://diveintopython.org/index.html - Dive Into Python http://www.garshol.priv.no/download/text/perl.html - Detailed Story of One Perl Hacker's Migration to Python http://www.linuxjournal.com/article/3882 - Eric Raymond's Detailed Story and Praise for Python http://www.pythonmagazine.com - Python Magazine http://www.planetpython.org - Python blog aggregation site All copyrights reserved for M. Gebreel(Harry Potter)
    • Questions? All copyrights reserved for M. Gebreel(Harry Potter)