Overview of Python Basics
The training program gets participants started with the basics of python and ensures that they have a good understanding of all popular and standard concepts needed to start working on Python immediately. The participants undergoing the course will have a good understanding of – Basic Python Programming and its various constructs, commonly used Python libraries, Input & Outputs, Error Handling, etc
Duration
3 Days
Prerequisite for Python Basics
Basic Computer knowledge and fundamentals of programming may be helpful in the training program.
Course Outline for Python Basics
Python 3 – Overview
Python 3 – Environment Setup
- Using the Python Interpreter
- Using JetBrains – PyCharm IDE
Python 3 – Informal Introduction
- Numbers, Strings, Lists
- Programming First steps
Control Flow Tools
- if Statements and for Statements
- range() Function
- break and continue Statements, and else Clauses on Loops
- pass Statements
- Functions
- Default Argument Values
- Keyword Arguments
- Arbitrary Argument Lists
- Unpacking Argument Lists
- Lambda Expressions
- Documentation Strings
Data Structures
- Lists built-in methods
- Using Lists as Stacks
- Using Lists as Queues
- List Comprehensions
- Nested List Comprehensions
- The del Statement
- Tuples and Sequences
- Sets
- Dictionaries
- Looping Techniques
- More on Conditional Statements
- Comparing Sequences and Other Types
Modules
- More on Modules
- Executing modules as scripts
- The Module Search Path
- “Compiled” Python files
- Standard Modules
- The dir() Function
- Packages
- Importing * From a Package
- Intra-package References
- Packages in Multiple Directories
Input and Output
- Fancier Output Formatting
- Old string formatting
- Reading and Writing Files
- Methods of File Objects
- Saving structured data with json
Errors and Exceptions
- Syntax Errors
- Exceptions
- Handling Exceptions
- Raising Exceptions
- User-defined Exceptions
- Defining Clean-up Actions
- Predefined Clean-up Actions
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
- Random Remarks
- Inheritance
- Multiple Inheritance
- Private Variables
- Iterators
- Generators
- Generator Expressions
Brief Tour of the 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
- Output Formatting
- Templating
- Working with Binary Data Record Layouts
- Multi-threading
- Logging
- Weak References
- Tools for Working with Lists
- Decimal Floating Point Arithmetic
Virtual Environments and Packages
- Introduction
- Creating Virtual Environments
- Managing Packages with pip