Python Programming

Please leave a remark at the bottom of each page with your useful suggestion.


Table of Contents

  1. Python Introduction
  2. Python Startup
  3. Python Examples Program Collection 1
  4. Python Examples Program Collection 2
  5. Python Examples Program Collection 3
  6. Python Examples Program Collection 4
  7. Python Examples Program Collection 5
  8. Python Examples Program Collection 6
  9. Python Examples Program Collection 7
  10. Python Examples Program Collection 8

Python Introduction


Python is a programming language. Thus programming languages like java, objective c, or c# that allow you to write full applications are not optimal choices. In addition, we assume that you have little or no prior programming experience. Thus interesting and challenging programming systems like Haskell, Lisp, or Prolog are best left for later. Consequently, we will use the Python programming language. There are specific reasons for this choice:

  • Python is extremely widely used in practical
  • Python has stable and clear semantics.
  • Modules. There are tons of optional modules that others have written with useful functions and objects to simplify your programming tasks.
  • NLTK. The Natural Language Toolkit is a freely available suite of modules tailored for working with language.
  • Python is an object-oriented (OO) programming language, and using it requires that you at least understand what objects are.

Python Programming Language

  • Interacting with Python and Basic Functions
    • Installing and Using Python
    • The Interactive Environment
    • Basic Interactions
    • Edit and Run
  • Data Types and Variables
    • Variable Names
    • Basic Data Types
      • Numbers
      • Booleans
      • Strings
      • Lists
      • Tuples
      • Dictionaries
    • Mutability
  • Control Structures
    • Grouping and Indentation
    • if
    • Digression on Printing
    • for
    • while
    • break and continue
    • Making Nonsense Items
  • Input–Output
    • Command-Line Input
    • Keyboard Input
    • File Input–Output
    • Alice in Wonderland
  • Subroutines and Modules
    • Simple Functions
    • Functions That Return Values
    • Functions That Take Arguments
    • Recursive and Lambda Functions
    • Modules
    • Writing Your Own Modules
    • Docstrings and Modules
    • Analysis of Sentences
  • Regular Expressions
    • Matching
    • Patterns
    • Backreferences
    • Initial Consonant Clusters
  • Text Manipulation
    • String Manipulation Is Costly
    • Manipulating Text
    • Morphology
  • Internet Data
    • Retrieving Webpages
    • HTML
    • Parsing HTML
    • Parallelism
    • Unicode and Text Encoding
    • Bytes and Strings
    • What Is the Encoding?
    • A Webcrawler
  • Objects
    • General Logic
    • Classes and Instances
    • Inheritance
    • Syllabification
  • GUIs
    • The General Logic
    • Some Simple Examples
    • Widget Options
    • Packing Options
    • More Widgets
    • Stemming with a GUI
  • Functional Programming
    • Functional Programming Generally
    • Variables, State, and Mutability
    • Functions as First-Class Objects
    • Overt Recursion
    • Comprehensions
    • Vectorized Computation
    • Iterables, Iterators, and Generators
    • Parallel Programming
    • Making Nonsense Items Again



Write Your Comments or Suggestion...