
Python Training Course
Course objective
After taking this course attendees should be able to:
- Use python interactively
- Able to execute python scripts
- Can approach to any programming problems using python
Prerequisites
The audience should have a basic understanding of any programming languages like C or Java or knowledge of any scripting language.
course duration: 30 hours
Course Content
- Variables, expressions, and statements
- Values and types
- Variables
- Variable names and keywords
- Statements
- Operators and operands
- Expressions
- Order of operations
- Modulus operator
- String operations
- Asking the user for input
- Strings
- A string is a sequence
- Getting the length of a string using len
- Traversal through a string with a loop
- String slices
- Strings are immutable
- Looping and counting
- The in operator
- String comparison
- string methods
- Parsing strings
- Format operator
- Lists
- A list is a sequence
- Lists are mutable
- Traversing a list
- List operations
- List slices
- List methods
- Deleting elements
- Lists and functions
- Lists and strings
- Parsing lines
- Objects and values
- Dictionaries
- Tuples
- Sets
- Conditional execution
- Boolean expressions
- Logical operators
- Conditional execution
- Alternative execution
- Chained conditionals
- Nested conditionals
- Catching exceptions using try and except
- Iteration
- Updating variables
- The while statement
- Infinite loops
- “Infinite loops” and break
- Finishing iterations with continue
- Definite loops using for
- Functions
- Function calls
- Built-in functions
- Type conversion functions
- Random numbers
- Math functions
- Adding new functions
- Definitions and uses
- Flow of execution
- Parameters and arguments
- Fruitful functions and void functions
- Errors and Exceptions
- Syntax Errors
- Exceptions
- Handling Exceptions
- Raising Exceptions
- Exception Chaining
- User-defined Exceptions
- Defining Clean-up Actions
- Predefined Clean-up Actions
- Files
- Persistence
- Opening files
- Text files and lines
- Reading files
- Searching through a file
- Letting the user choose the file name
- Using try, except, and open
- Writing files
- Networked programs
- HyperText Transport Protocol - HTTP
- The World’s Simplest Web Browser
- Retrieving an image over HTTP
- Retrieving web pages with urllib
- Parsing HTML and scraping the web
- Parsing HTML using regular expressions
- Parsing HTML using BeautifulSoup
- Reading binary files using urllib
- CLASSES
- A WORD ABOUT NAMES AND OBJECTS
- PYTHON SCOPES AND NAMESPACES
- SCOPES AND NAMESPACES EXAMPLE
- A FIRST LOOK AT CLASSES
- CLASS DEFINITION SYNTAX
- CLASS OBJECTS
- INSTANCE OBJECTS
- METHOD OBJECTS
- CLASS AND INSTANCE VARIABLES
- INHERITANCE
- MULTIPLE INHERITANCE
- PRIVATE VARIABLES
- ODDS AND ENDS
- ITERATORS
- GENERATORS
- GENERATOR EXPRESSIONS
- Using databases and SQL
- What is a database?
- Database concepts
- Creating a database table
- Structured Query Language summary
- Standard Library
- Operating System Interface
- File Wildcards
- Command Line Arguments
- Error Output Redirection and Program Termination
- String Pattern Matching
- Mathematics
- Internet Access
- Dates and Times
- Data Compression
- Performance Measurement
- Quality Control
- Project Work








