Download eBook: Introduction to Python

Download Python eBook, share below to download:

Contents

I Data types

  • Numbers
    Datatypes
    User Input
  • Text
    Output and Input
    Comparison
    Slices
  • Lists
    Definition
    Appending and removing
    Sorting
  • Dictionary
    Definition
    Manipulating a dictionary
  • Tuples
    Definition
    Data access
    Append to a tuple
    Convert a tuple
    Sorting

II Control Flow

  • If statements
    Definition
    A practical example
    Nesting (28)
  • Loops
    Definition
    For loop
    Nested loop (30). While loop (30)
  • Functions
    Definition
    Calling and parameters
    Scope
    Calling functions from functions
    Global and local variables

III Object-Oriented Programming

  • Classes
    Introduction
    Objects and Classes
    Class variables
  • Method overloading
    Introduction
    Example
  • Inheritance
    Introduction
    Example