
Master intermediate Python concepts through practical topics like iterators, scope, string formatting, generators, regular expressions, standard library modules, and packaging, then build projects: a fibonacci generator and a storytelling application.
Master Python iterators by learning how iter and next traverse iterables like tuples, understand the difference between iterable and iterator, and handle the StopIteration exception with practical examples.
Learn how to create a generator from a string, treating strings as iterable, by obtaining an iterator for 'lemon' and calling next to retrieve each character.
Master using a for loop to iterate over a tuple and print each item, illustrated with a three-item fruit_tuple and its printed values.
Learn to use a for loop to iterate through a string, printing each character in order and demonstrating simple string iteration in Python.
Learn to build Python iterator by implementing iter and next in a counting class, initializing with __init__, and generating a sequence that starts at one and increments with each next.
Learn how to control iteration in Python by raising a stop iteration exception, using next to traverse numbers 1 through 19, and handling end conditions with conditional statements.
Learn how local scope confines variables to the function, with a practical example where a variable inside a function prints 200, but accessing it outside raises an error.
Explore how a local variable inside a function is accessible from a nested function, demonstrated by printing Goldex (200) from an inner function using a Python standard library call.
Understand how the global scope makes variables accessible from any scope. See a practical example where a global variable X set to 100 is used inside and outside a function.
Explore how Python treats the same variable name inside and outside a function, creating separate local and global variables in their scopes, so global values remain unchanged after function calls.
Understand Python scope and how the global keyword makes a variable global, letting it be used outside a function and changing its output.
Explore how to use the Python format method to insert variables with placeholders, control dynamic values, and display a formatted string, illustrated with number and message examples.
Format numbers to two decimals using the format function and the format method, placing the value inside the decorative braces (placeholder) to display 25 as 25.00 in the terminal.
Learn to use the format function to display any number of variables with placeholders, formatting quantity, item number, and price to two decimals.
Learn to use index numbers with Python's format function to control placeholder order, repeat values, and print variables in the desired positions.
Learn to use Python's format function with named indexes, passing values by name to fill placeholders and generate precise, labeled outputs.
Discover how to build a Python generator function using yield, create an iterator, and fetch values with next while handling stop iteration.
Explore the difference between yield and return in Python generator functions, showing how yield preserves state and returns values while return terminates execution, with practical examples.
Discover how to use a generator function with a for loop to iterate a range of numbers and retrieve values with next, stopping at stop iteration when the sequence ends.
Learn how to build a generator function that yields the square of numbers from 0 to 6. Iterate with next and handle StopIteration to print seven squares.
Explore Python generators and stop iteration handling by using for loops to traverse a generator, producing numbers like squares from 0 to 6, with dynamic, on-demand item generation for efficiency.
Explore generator expressions as a concise way to create simple generators in Python. See how next yields numbers 0 through 6 and stops at the end with stop iteration.
Pass a generator expression into a function using a Python standard library built-in, and print the sum of squares from zero to six to demonstrate the concept.
Import the regular expressions module in Python and learn how to use search patterns to test strings against a pattern.
Discover how to import and use python's regular expressions to search strings, and verify that text starts with you and ends with python through a simple conditional.
Explore Python regular expressions through the re module, learning search, match, findall, split, and replace, plus meta characters, sets, and special sequences.
Discover how the findall function with the regular expression module returns non-overlapping matches in a string as a list, with groups yielding tuples and empty matches included.
Explore how to use the Python regular expression module's search function to locate the first whitespace in a string, returning a match object or none, with practical examples.
Learn how Python uses None to indicate no matches in a search. Inspect how the program signals the absence of results in its output.
Learn to split a string at every whitespace character using the regex split function, and see how capturing groups affect the output, with examples showing lists of words.
Learn to control how many times a string splits using the split function's maxsplit parameter, with an optional separator, and see how maxsplit=1 or 2 isolates the first parts.
Explore how to replace every whitespace character with a dollar sign using Python's regex module, focusing on leftmost non-overlapping matches and the count parameter to limit replacements.
Learn how a match object stores a search result, including the start and end positions of the found substring. If no match exists, a nonmatch value returns instead.
Explore the spend method and how a regular expression finds words that start with an uppercase letter, and returns their start positions such as zero and four.
Learn how the string property returns the input string and works with match and search functions, using an example of a word beginning with a capital P.
Use the group method with a regular expression to find words that start with an uppercase letter and print the matching word, such as Python.
Explore built-in and standard library modules in Python, learn how the interpreter loads them, and use help('modules') to list available modules for import in your programs.
Learn how to use Python's os module to create and change directories, import the module, and interact with the file system using portable, OS-dependent functionality.
Explore how to use the os module to get the current working directory with getcwd, verify changes, remove directories with rmdir, and list directory contents with listdir.
Explore the sys module of the Python standard library, learn how to import it, and inspect attributes like maxsize, path, and version to understand the interpreter.
Explore the Python math module, including import math, pi and e constants, trigonometric functions, radians and degrees conversions, logarithms, powers, square roots, and ceiling and floor operations.
Explore the Python statistics module, which provides functions for numeric data analysis. Import statistics to compute the mean, median, and mode, and explore additional functions in the official documentation.
Explore the collections module in the Python standard library. Learn how namedtuple provides objects with named fields accessible by name or index.
Explore the collections module and the order dict function, which remembers the order of keys as they are first inserted, and use items to display all key-value pairs.
Explore the collections deque in Python, learn how to appendleft and append, and use pop and popleft to efficiently manage items at either end of a list, avoiding costly shifts.
Explore the Python standard library by using the random module's functions, including random, the range function, and choice, and learn how to import random to generate numbers and select items.
Create a Python package as a folder containing modules, organize files into subfolders, and add modules such as greeting.py and a math module with arithmetic functions.
Import a module from a new package and use power, some, and average from the new functions module, showing three to the power of three equals twenty seven.
Learn Python packaging by creating a package with __init__.py, importing all functions from modules, and accessing them via the package name for the greeting and power calculations.
Install a Python package globally for system-wide use by creating a setup file and calling the setup function from the tools module with dependencies and disabling compressed mode.
Welcome to The Intermediate Python Immersive Training | Boost your career
In this course, you will learn in depth the most important Python language topics for the intermediate level.
Once you have completed this course, you will be able to use all these techniques, which we will list in detail.
There is a wonderful feature in this course, as it explains in important detail all you need in these topics in a direct and practical way that saves you valuable time and effort.
Once you have completed this course, you will be able to understand and use the following techniques in your Python programs:
Iterator from fruitstuple and print each value, Iterator from sequence of characters, for loop to iterate through a tuple, for loop to iterate through a string, Build an iterator that returns numbers, raise StopIteration, local scope of a function, local variable can be accessed from a function inside function function, global variables are available from within any scope, Naming and Renaming Variables, The global keyword makes the variable global, adding a placeholders, displayed as a number with two decimals, Adding Multiple Placeholders, Using index numbers for placeholders, Using named indexes, simple generator function with yield, return a value and terminate the execution of the function, Using generator function with for loop, yield square of number, loop and StopIteration automatically, Use generator expression, pass generator expression in a function, import the regular expressions module, Search the string to see if match or no match, regex function, metacharacters, special sequences and sets, findall list of matches, Search for the first white-space, Making a search that returns no match, Split at each white-space in the string, replace every white space and count parameter, search and return a match object, .span and Searching for upper case, string property to return the string passed into the function, Print the word that contains upper case, display a list of all available modules, create and change directory, getcwd and rmdir, list files and sub directories, sys module, math module, statistics, collections and namedtuple, collections and OrderedDict, collections and deque, random module with functions, creating package called newpackage with files, use from newpackage newfunctions to main, work with init module and use modules, Installing collected newpackage, .... and more.
And if you have any inquiries in this course, the instructor will answer them and inform you in detail. In order to get the most out of this course.
I hope you will join us on this wonderful journey which I promise will truly benefit you.