Learning Professional Python: Volume 2: Advanced

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Volume 2 of Learning Professional Python is a resource for students who want to learn Python even if they don’t have any programming knowledge and for teachers who want a comprehensive introduction to Python to use with their students. This book helps the students achieve their dream job in the IT Industry and teaches the students in an easy, understandable manner while strengthening coding skills. Learning Professional Python: Volume 2 Objectives, • Become familiar with the features of Python programming language, • Introduce the object-oriented programming concepts, • Discover how to write Python code by following the object-oriented programming concept, • Become comfortable with concepts such as classes, objects, inheritance, dynamic dispatch, interfaces, and packages, • Learn the Python generics and collections, • Develop exception handling and the multithreaded applications, • Design graphical user interface (GUI) applications

Author(s): Usharani Bhimavarapu; Jude D. Hemanth
Publisher: CRC Press LLC
Year: 2024

Language: English
Pages: 232

Contents

Preface

Author Biographies

Chapter 1 ◾ Classes and Objects

1.1 Creating Classes

1.1.1 Python Self-Parameter

1.2 Object Creation

1.3 Accessing Attributes

1.4 Class Method

1.5 Return from Class

1.6 Constructors

1.7 Deleting Objects

1.7.1 Delete the Object

1.8 Python Built-In Class Functions

1.9 Built-In Class Attributes

1.10 Inner Class

Exercise

Chapter 2 ◾ Inheritance

2.1 Single Inheritance

2.2 Multiple Inheritance

2.3 Multilevel Inheritance

2.4 Overriding Methods

2.5 Nested Class Inheritance

Exercise

Chapter 3 ◾ Arrays

3.1 Byte Array

3.2 NumPy

3.3 Reshaping Arrays

3.4 Operations on Array

Exercise

Chapter 4 ◾ Exception Handling

4.1 Exception Handling in Python

4.2 Single Try Multiple Except Statements

4.3 Single Try Single Except with Multiple Exceptions Statements

4.4 Try-Except-Else

4.5 The Try … Finally Block

4.6 Raising Exceptions

4.7 User-Defined Exceptions

4.8 Constructors in Exception Handling

4.8.1 Exception and Inheritance

Exercise

Chapter 5 ◾ Multi Threading

5.1 Multiprocessing in Python

5.2 Multi Threading

5.2.1 Starting a New Thread

5.3 Creating Thread Using Threading Module

5.4 Synchronizing the Thread

5.4.1 Race Condition

5.4.2 Locks

5.4.3 Semaphore

Exercise

Chapter 6 ◾ Method Overloading and Operator Overloading

6.1 Introduction

6.2 Method Overloading

6.3 Operator Overloading

6.3.1 Overloading Arithmetic Operators

6.3.2 Overloading Comparison Operators

6.3.3 Overloading Assignment Operator

6.3.4 Overloading Class Operators

6.3.5 Overloading the Unary Operators

6.3.6 Overloading of Operators on Lists

6.3.7 Operator Overloading on Dictionaries

6.4 Eligible Operators for Operator Overloading

Exercise

Chapter 7 ◾ GUI Programming

7.1 Tkinter Interface

7.2 Label

7.3 Button

7.4 Message box

7.5 Message

7.6 Entry

7.7 Checkbutton

7.8 Radiobutton

7.9 Listbox

7.10 Scale

7.11 Spinbox

7.12 Scrollbar

Exercise

Chapter 8 ◾ File Handling

8.1 Opening a File

8.2 Writing to the Files

8.2.1 Reading the Files

8.2.2 Readlines

8.3 The Close () Method

8.4 With Statement

8.5 Appending to the Files

8.6 File Pointer Positions

8.6.1 Modifying File Pointer Position

8.6.2 Renaming the File

8.7 Binary File

8.8 Random Access Files

Exercise

Chapter 9 ◾ Database Connectivity

9.1 Python with MYSQL

9.2 Python with Oracle

Exercise

Chapter 10 ◾ Case Study

10.1 Program 1: Whats App Analyser

10.2 Program 2: Breast Cancer Prediction

10.3 Program 3: Stock Price Prediction

10.4 Program 4: Chat Box

10.5 Program 5: Parkinson Detection

10.6 Program 6: Face Mask

10.7 Program 7: Covid-19 Analysis

10.8 Program 8: Time Series Forecasting

10.9 Program 9: Fraud Detection

Index