Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Chapter 1: Introduction
What is Python and why learn it?
Installation
Your First “Hello World” Program
Running Code Interactively VS Running Scripts
Variables and Datatypes
Basic Operators
Arithmetic Operators
Comparison Operators
Assignment Operators
Summary
Assignment
Chapter 2: Sequences
What are sequences?
Accessing sequence items through indexing
Splitting sequences
Negative indexing
Working with lists
Working with strings
String formatting
Summary
Exercises
Chapter 3: Collections
Sets
Dictionaries
Working with Sets
Working with Dictionaries
Summary
Assignment
Chapter 4: Conditionals
If Statements
If-else Statements
Receiving user input
Elif Statements
Inline if
Summary
Assignment
Chapter 5: Loops
What are loops?
For-loop
While-loop
List Comprehensions
Summary
Assignment
Chapter 6: Custom Functions
What are custom functions?
Defining and calling a function
Functions with multiple parameters
Functions with default parameters
Summary
Assignment
Chapter 7: Classes
What are classes?
Defining a class
Inheritance
Summary
Assignment
Chapter 8: Modules and Packages
What are modules?
What are packages?
Working with modules and packages
Installing external modules and packages
Code introspection
Creating your own module
Summary
Assignment
Chapter 9: File Handling
Opening a file with Python
Reading a text file
Writing inside a text file
Creating a new text file
Reading, writing and creating new binary files
Handling files easier with "with"
Working with directories
Changing the current working directory and creating new ones
Deleting files and directories
Summary
Assignment
Chapter 10: Other Advanced Functionalities
About this chapter
Commenting you code
Errors and Exceptions
Handling exceptions
Database handling
Regular expressions
Matching more than one pattern
Summary
Assignment
Chapter 11: Conclusion
← Prev
Back
Next →
← Prev
Back
Next →