Learn Python 3 is a Free & Open Source book to master the fundamentals of Python programming.
Author(s): Ankit Mahato
Edition: 1
Publisher: EdPunk
Year: 2022
Language: English
Pages: 149
Tags: python
Introduction
Introduction to Programming Languages
Introduction to Python
Advantages of Python
Installing Python in Windows
Installing Python in macOS (Apple)
Execution Modes
Interactive Mode of Execution
Script Mode of Execution
Python Fundamentals
Tokens: Introduction
Tokens: Keywords
Tokens: Identifiers
Tokens: Literals
Tokens: Operators
Tokens: Delimiters
Character Set
Blocks and Indentation
Comments
Variables, Objects & Data Types
What are Objects & Variables?
Variables & Assignment Statements
Built-in Data Types
Type Checking
Type Casting
Mutable & Immutable Data Types
Input / Output
How to Accept User Input
Displaying Output
Operators & Expressions
Introduction to Operators
Arithmetic Operators
Relational Operators
Assignment Operators
Logical Operators
Identity Operators
Membership Operators
Expressions
Operator Precedence with Examples
Errors & Exception Handling
Error Types
Syntax Error
Runtime Error
Logical Error
Exceptions
Exception Handling
Control Flow
Introduction to Control Flow
Sequential Flow
Selection Statements: if .. else
Iteration: for
Iteration: while
Jump Statements
Nested Loops
Strings
Strings: Introduction & Creation
Accessing Characters of a String
String Operations
Introduction to String Methods
Convert Case of Strings
Check Characters of a String
Split a String
Strip Characters from a String
Check Prefix or Suffix in a String
Find & Replace Characters in a String
Traversing a String
List
What is a Python List? How to Create a List?
Accessing Items of a List
Modifying a List
Removing Item from a List
List Operations
Traversing a List
Built-in Functions that can be used for a List
Introduction to List Methods
Adding Items to a List
Removing Items from a List
Counting or Locating Items in a List
Reversing Items
Sorting a List
Copying a List
Nested List
List Comprehension
Sample Programs
Tuple
List vs Tuple
How to Create Tuple?
What is a Singleton?
Accessing Items of a Tuple
Tuples are Immutable
Tuple Operations
Traversing a Tuple
Built-in Functions that can be used for a Tuple
Locating Items in a Tuple
Counting the Occurrence of an Item
New Tuple with Reversed Items
New Tuple with Sorted Items
Nested Tuple
Understanding the Immutable Nature of Tuples
Dictionary
What is a Dictionary?
How to Create a Dictionary
Accessing Items (Key:Value) of a Dictionary
Updating a Dictionary
Removing an Item (Key:Value) from a Dictionary
Dictionary Operations
Traversing a Dictionary
Built-in Functions for a Dictionary
Creating a Copy of a Dictionary
Nested Dictionary
Sample Programs
Python Standard Library
Built-in Functions
Mathematical Functions
Type Functions
I/O Functions
Base/Unicode Conversion Functions
What are Built-in Modules?
math Module
random Module
statistics Module
File Handling
File Handling in Python - Introduction & Overview
Text Files vs Binary Files - Use Case, File Formats, Examples
File Opening & Closing
File Reading
Writing a File
Reading & Writing Binary Files using pickle Module
Reading & Writing a CSV File using csv Module
User Defined Functions, Modules & Packages
User Defined Functions
Function Structure
Parameters and Arguments
Scope of Variables
Passing Objects of Mutable Type to a Function
What is a Module? How to Create a Module?
Executable Scripts / Modules
What is a Package? Introduction to PyPi. How to Create a Python Package?