| |
| |
Introduction | |
| |
| |
Scenario | |
| |
| |
| |
An Introduction to Python | |
| |
| |
Getting Started | |
| |
| |
Understanding Requirements | |
| |
| |
Determine Requirements of the University | |
| |
| |
Obtain Python and Its Documentation | |
| |
| |
Determine the System Requirements | |
| |
| |
Install Python | |
| |
| |
Start Python in Different Execution Modes | |
| |
| |
Summary | |
| |
| |
| |
Getting Started with Python | |
| |
| |
Getting Started | |
| |
| |
Writing Your First Python Program | |
| |
| |
Comments | |
| |
| |
Python as a Calculator | |
| |
| |
Using Variables in Python | |
| |
| |
Variables | |
| |
| |
Assigning Values to Variables | |
| |
| |
Standard Types | |
| |
| |
Identifiers and Keywords | |
| |
| |
Memory Management | |
| |
| |
Create a Sequence to Store All the Names of the Students | |
| |
| |
Write the Code to Display the Names of the Students | |
| |
| |
Declare a Dictionary of Student Purchases with the Names of the Students as the Key | |
| |
| |
Write the Code to Display the Student Purchases | |
| |
| |
Save and Execute the Code | |
| |
| |
Verify the Details | |
| |
| |
Summary | |
| |
| |
| |
Intrinsic Operations and Input/Output | |
| |
| |
Getting Started | |
| |
| |
Using Input/Output Features and Intrinsic Operations for Data Types in Python | |
| |
| |
Identify the Variables to Be Used | |
| |
| |
Accepting User Input | |
| |
| |
Formatting the Output | |
| |
| |
Introduction to Intrinsic Operations | |
| |
| |
Intrinsic Operations for Numeric Data Types | |
| |
| |
Intrinsic Operations for Strings | |
| |
| |
Intrinsic Operations for Lists and Tuples | |
| |
| |
Write the Code | |
| |
| |
Execute the Code | |
| |
| |
Summary | |
| |
| |
| |
Programming Basics | |
| |
| |
Getting Started | |
| |
| |
Conditional Operators | |
| |
| |
Order of Precedence of Operators | |
| |
| |
Using Programming Constructs | |
| |
| |
Identify the Control and Loop Statements to Be Used | |
| |
| |
Write the Code | |
| |
| |
Execute the Code | |
| |
| |
Summary | |
| |
| |
| |
Functions | |
| |
| |
Getting Started | |
| |
| |
Using Functions | |
| |
| |
Functions | |
| |
| |
Scope of Variables | |
| |
| |
Identify the Functions to Be Used | |
| |
| |
Write the Code | |
| |
| |
Execute the Code | |
| |
| |
Summary | |
| |
| |
| |
Modules | |
| |
| |
Getting Started | |
| |
| |
Using Modules | |
| |
| |
Modules | |
| |
| |
Packages | |
| |
| |
Identify the Modules to Be Used | |
| |
| |
Write the Code | |
| |
| |
Execute the Code | |
| |
| |
Summary | |
| |
| |
| |
Files | |
| |
| |
Getting Started | |
| |
| |
Using File Objects | |
| |
| |
Identify the Functions and Methods to Be Used | |
| |
| |
Write the Code to Store Course Details to the File | |
| |
| |
Execute the Code | |
| |
| |
Verify the Solution | |
| |
| |
Summary | |
| |
| |
| |
Object-Oriented Programming | |
| |
| |
Getting Started | |
| |
| |
Introducing OOP | |
| |
| |
Components of OOP | |
| |
| |
Benefits of OOP | |
| |
| |
Using Classes | |
| |
| |
Identify the Classes to Be Defined | |
| |
| |
Identifying the Class Objects | |
| |
| |
Identifying the Classes to Be Inherited and Their Objects | |
| |
| |
Identify the Methods to Be Overridden | |
| |
| |
Write the Code | |
| |
| |
Execute the Code | |
| |
| |
Summary | |
| |
| |
| |
Exception Handling | |
| |
| |
Getting Started | |
| |
| |
Handling Exceptions | |
| |
| |
Identify the Type of Error and Where the Error Occurs | |
| |
| |
Identify the Mechanism of Trapping the Exception | |
| |
| |
Identify the Location for the Code for Handling the Exception to Be Written | |
| |
| |
Write the Code for Handling the Exception | |
| |
| |
Save and Execute the Code | |
| |
| |
Summary | |
| |
| |
| |
CGI Programming | |
| |
| |
Getting Started | |
| |
| |
Internet Basics | |
| |
| |
World Wide Web | |
| |
| |
Web Browsers | |
| |
| |
Hypertext Transfer Protocol (HTTP) | |
| |
| |
Revising HTML | |
| |
| |
Client-Side versus Server-Side Scripting | |
| |
| |
An Introduction to CGI | |
| |
| |
Writing CGI Applications | |
| |
| |
Write the Code for the HTML Form to Accept Data from the User | |
| |
| |
Write the CGI Program in Python to Generate the Results Page | |
| |
| |
Write the CGI Program to Generate Both the Form and Results Pages | |
| |
| |
Execute the Code | |
| |
| |
Summary | |
| |
| |
| |
Database Programming | |
| |
| |
Getting Started | |
| |
| |
Database Management | |
| |
| |
Introduction to MySQL | |
| |
| |
Working with MySQL | |
| |
| |
Accessing a Database from a Python Script | |
| |
| |
Identify the Elements of the Table That Stores Registration Details | |
| |
| |
Identify the Steps for Connecting to the Database | |
| |
| |
Write the Code to Create a Table in the Database | |
| |
| |
Write the Code to Insert the Registration Details into the Table Created | |
| |
| |
Execute the Code to Create the Table in the Database | |
| |
| |
Execute the Code to Insert Data into the Table | |
| |
| |
Verify the Data in the Database | |
| |
| |
Summary | |
| |
| |
| |
Network Programming | |
| |
| |
Getting Started | |
| |
| |
Client/Server Architecture | |
| |
| |
Network Programming | |
| |
| |
Using Sockets | |
| |
| |
Identify the Sockets to Be Used | |
| |
| |
Write the Code to Run on the IT Department Computer | |
| |
| |
Write the Code to Run on the Admission Office Computer | |
| |
| |
Execute the Code Created for the IT Department Computer | |
| |
| |
Execute the Code Created for the Admission Office Computer | |
| |
| |
Verify that Data Has Been Saved to a File in the IT Department Computer | |
| |
| |
Summary | |
| |
| |
| |
Multithreaded Programming | |
| |
| |
Getting Started | |
| |
| |
Single-Threaded Applications | |
| |
| |
Threading in Python | |
| |
| |
Creating Multithreaded Applications | |
| |
| |
Identify the Class and the Methods to Create a Multithreaded Application | |
| |
| |
Write Code for the Server | |
| |
| |
Write the Code for the Client | |
| |
| |
Execute the Code Created for the Server | |
| |
| |
Execute the Code Created for the Client | |
| |
| |
Summary | |
| |
| |
| |
Advanced Web Programming | |
| |
| |
Getting Started | |
| |
| |
Creating Web Servers | |
| |
| |
Accessing URLs | |
| |
| |
Creating Advanced CGI Applications | |
| |
| |
Identify the Elements of the Web Page for Entering Assignment Details and Uploading the File | |
| |
| |
Identify the Methodology for Uploading the File | |
| |
| |
Identify the Methodology for Storing User Information | |
| |
| |
Write the Code for the CGI Script | |
| |
| |
Execute the CGI Script | |
| |
| |
Summary | |
| |
| |
| |
GUI Programming with Tkinter | |
| |
| |
Getting Started | |
| |
| |
Introduction to Tkinter | |
| |
| |
Creating a GUI Application | |
| |
| |
Identify the Components of the User Interface | |
| |
| |
Identify the Tkinter Widgets to Design the User Interface | |
| |
| |
Write the Code for the User Interface | |
| |
| |
Execute the Code | |
| |
| |
Summary | |
| |
| |
| |
Distributing COM Objects | |
| |
| |
Basics of COM | |
| |
| |
The Binary Standard | |
| |
| |
COM Interfaces | |
| |
| |
Binding | |
| |
| |
Python and COM | |
| |
| |
Creating COM Clients | |
| |
| |
Creating COM Servers | |
| |
| |
Index | |