Python Language
Python Language
Duration : 5 days
-------------------------------------------------------------------------
Python Topics:
Getting Started
• Python : Usage and relevance
• Variables, Keywords
• Built-in Functions
• Strings : Quotation variants and implications, raw string literals
• String operators and methods
• Numeric literals, math operators and expressions
• Input / Output
• String formatting
Flow Control
• White space, how it matters ?
• if and elif, Conditional expressions
• Relational operators
• Boolean operators while loops
• Alternate ways to exit a loop
Sequences
• Sequences – Relevance
• Lists, Tuples
• Functions and Methods
• Indexing and slicing
• Iterating through a sequence
• Functions for important sequences
• Using enumerate()
• Generator expressions
Functions
• Function definition, parameters
• Variable scope - Global variables
Sorting
• Sorting overview
• The sorted () function
• Lambda functions
• Sorting dictionaries
• Sorting in reverse
• Sorting lists in place!
Modules
• What is a module?
• The import statement
• Where did the .pyc file come from?
• Module search path
• Creating Modules & Packages