Table of Contents

Introduction

Chapter 1: Basics of the Python Programming Language

Installing Python

Installing Python in Macintosh Operating System X

Installing Python in Linux Operating Systems

Installing Python in Windows Operating System

How to Run Python

Integrated Development Environment (IDE)

Your First Program in Python

Variables

Conventions When Naming Variables in Python

Wrap-Up

Chapter 2: Variables in Python Programming Language

a) Numbers

b) Strings

Identifiers and Keywords

Comments and Statements

Statements in Python

Multi-line Python Statement

Indentation in Python

Comments in Pythons

Multi-line Comments

Python’s Docstring

Practice Exercise

Basic Operators in Python

Arithmetic Operators

Modulus

Squaring and Cubing in Python

Operators with String in Python

Wrap-Up

Chapter 3: Data Types in Python

❍ Numbers

❍ Number Conversion

Type Conversion

✓ Decimal in Python

✓ Fractions in Python

Mathematics in Python

Random function in Python

Lists in Python

Nested Lists

Accessing Elements from a List

Nested List Indexing

Python Negative Indexing

Manipulating Elements in a List using the assignment operator

Changing a range of items in a list

Appending/Extending items in the List

Removing or Deleting Items from a List

Deleting Multiple Elements

Using Empty List to Delete an entire or specific elements

List Methods in Python

Inbuilt Python Functions that can be used to manipulate Python Lists

Tuple in Python

Negative Indexing

Slicing

Available Tuple Methods in Python

Testing Membership in Tuple

Inbuilt Python Functions with Tuple

Accessing items in a string

Deleting or Changing in Python

String Operations

String Iteration

Membership Test in String

String Formatting in Python

Escape Sequences in Python

Wrap-Up

Chapter 4: Methods/Functions in Python

Methods in Python

Calling a Method in Python

Docstring

Python function return statement

Variable Scope and Lifetime in Python Functions

Function Types

Chapter 5: Type Conversion and Type Casting in Python

i.  Implicit Conversion Type

Converting Integer to Float

ii.  Explicit Conversion

Input, Output, and Import in Python

Formatting Output

Input in Python

Syntax/way of using it in Python

Import in Python

Namespace and Scope in Python

Namespace in Python

Variable Scope

Wrap-Up

Chapter 6: Flow Control and Loops in Python

if...else Statement

Nested if Statements in Python

range() function in Python

Using for loop with else

while Loop in Python

Using While loop with else

Python’s break and continue

continue statement in Python

pass Statement in Python

Chapter 7: Objects and Classes in Python

Syntax

Class or Object Instantiation

Functions

Inheritance in Python

Data Encapsulation/Data Hiding

Polymorphism

Definition of a Class

Creating an Object in Python

Constructors

Deleting Objects and Attributes

Deleting an Object

Inheritance in Python

Syntax

Function Overriding in Python

Inheritance in Multiple Form

Operator Overloading in Python

Making A Class Compatible with Inbuilt Special Functions

Additional inbuilt methods

Operator + Overloading

Overloading Comparison Operators

Functions for Implementing Overloading of Comparison Operators

Wrap-Up

Chapter 8: Scope and Life Time of Variables and Functions in Python

Keywords Arguments in Python

Arbitrary Arguments

Recursion in Python

Python Anonymous Function

Python’s Global, Local and Nonlocal

Python’s Global and Local Variable

Python’s Nonlocal Variables

Global Keyword in Python

Creating Global Variables across Python Modules

Chapter 9: Python Modules and Packages

Python Modules

Module Import

Import statement in Python

Importing all names

Module Search Path in Python

Reloading a Module

Dir() built-in Python function

Python Package

Chapter 10: Data Processing, Analysis, and Visualization

Chapter 11: Regression and Classification

Classification

Chapter 12: Applications of Python Programming in the Real World

a) Artificial Intelligence chips

b) Artificial Intelligence will enhance DevOps

c) The relationship between Artificial Intelligence and IoT

d) Personalized Drugs and Medicine

e) Increased Evolution of Machine Learning-based assistants

f) Computer vision will change and enhance the future of surveillance

g) Good metrics from machines or equipment using artificial Intelligence

h) Social Credit Systems

i) Healthcare will experience many Artificial Intelligence implementations

Conclusion

© Copyright 2019 by Peter Van Dijk  - All rights reserved.

This eBook is provided with the sole purpose of providing relevant information on a specific topic for which every reasonable effort has been made to ensure that it is both accurate and reasonable. Nevertheless, by purchasing this eBook you consent to the fact that the author, as well as the publisher, are in no way experts on the topics contained herein, regardless of any claims as such that may be made within. As such, any suggestions or recommendations that are made within are done so purely for entertainment value. It is recommended that you always consult a professional prior to undertaking any of the advice or techniques discussed within.

This is a legally binding declaration that is considered both valid and fair by both the Committee of Publishers Association and the American Bar Association and should be considered as legally binding within the United States.

The reproduction, transmission, and duplication of any of the content found herein, including any specific or extended information will be done as an illegal act regardless of the end form the information ultimately takes. This includes copied versions of the work both physical, digital, and audio unless express consent of the Publisher is provided beforehand. Any additional rights reserved.

Furthermore, the information that can be found within the pages described forthwith shall be considered both accurate and truthful when it comes to the recounting of facts. As such, any use, correct or incorrect, of the provided information will render the Publisher free of responsibility as to the actions taken outside of their direct purview. Regardless, there are zero scenarios where the original author or the Publisher can be deemed liable in any fashion for any damages or hardships that may result from any of the information discussed herein.

Additionally, the information in the following pages is intended only for informational purposes and should thus be thought of as universal. As befitting its nature, it is presented without assurance regarding its prolonged validity or interim quality. Trademarks that are mentioned are done without written consent and can in no way be considered an endorsement from the trademark holder.