Python Bees: Python For Granny

An all-encompassing Python programming guide meticulously crafted for novices to seasoned professionals. This comprehens

128 7 37MB

English Pages 322 Year 2023

Report DMCA / Copyright

DOWNLOAD EPUB FILE

Table of contents :
Content

Preface

Who is this book for
Book Structure



Introduction


1

The Python Language


2

Starting Python

Configuring System Path
Starting Python on Windows
Starting Python on Linux


3

Variables

Global and Local Variables


4

Comment


5

Reserved Words

Built-in Functions


6

Operators

Arithmetic Operators
Relational Operators
Assignment Operators
Logical Operators
Identity Operators
Bitwise Operators


7

Data Types

Conversion of Data Types


8

Numbers

Integer
Float
Mathematical Functions


9

String

String Indexing
Slicing a String
Concatenating a String
String Methods
Formatting Strings
Escape Characters


10

List

List indexing
Slicing List
Modifying List
Concatenating List
Python Iterators


11

Tuples

Slicing Tuples
Tuple Methods


12

Dictionary

Accessing Elements in Dictionary


13

Set

Unique Set Methods


14

Loops

The for loop
The while loop


15

Conditional Statement

The if statements
The if else statements
The elif statements


16

Functions

Built-in Functions
User Defined Functions
Calling Functions
Recursive Functions
Unlimited Argument
Anonymous Functions


17

Class and Object


18

Modules


19

Randon Modules


20

Date and Time

Time Modules
Calendar Modules


21

Python Files

File Modes
Writing to a File
Reading from a File
File Attributes


22

Handling Exceptions

Syntax Error
Runtime Error
Built-in Runtime Exceptions
Catching Exceptions


23

The OS Module

Working with Files
Working with the System


24

Author’s Remarks



About Author



Acknowledgement

Python Bees: Python For Granny

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up