
An overview of why you should learn Python.
Overview of prerequisites for the course.
Python installation is covered here.
Install dot net core for Python for the .NET developer course, download the latest SDK, and verify by running dotnet new console to create an empty console project.
install Visual Studio Code, add to path, install the C# extension, reload, and run dotnet to verify; then adjust view settings and code learns previews.
Set up a root directory for python for dot net developers, organize c-sharp_vsc and python_vsc folders, open in Visual Studio Code, and run chapter 1 console with 'rise and shine'.
Configure Visual Studio Code for Python by setting a color theme, installing the Python extension and Code Runner, ensuring pylint and pip, then run code and resolve errors.
Demonstrate writing single-line and multi-line comments in C# and Python, including slashes, asterisks, hashes, and triple quotes, while emphasizing concise comments and strong naming conventions.
Learn how to implement a Python main method and functions, using def and demo_print_greeting, and if __name__ == '__main__' to run code, with underscore naming conventions.
Compare how variables are declared in c# and Python, using var for type inference, and explore local vs global variables, including redeclaration and global keyword behavior.
Explore Python types with a friendly reference guide, covering numeric types, sequences, sets, and mappings, and learn how to use dictionaries and loops in arithmetic.
Learn Python arithmetic with addition, subtraction, multiplication, division, modulus, exponentiation, and floored division; compute floor and ceiling via the math library and compare Python and C# order of operations.
Learn to define and call Python functions with parameters and return values, explore default parameter values, and see functions treated as objects, plus practical demos of printing results.
Explore conditionals and comparison operators through C# if statements and Python conversion, highlighting if, elif, else, indentation, and translating code between languages.
Demonstrate creating and printing lists with generic collections in C#, mirroring Python lists, including modifying the first element, selecting partial lists, and building lists within lists with iteration.
Explore looping in both C# and Python, using for loops, for-each loops, traversing two-dimensional arrays, and applying continue and break to control flow with practical code examples.
Explains how the while loop works in Python and how it compares to the for loop, including initializing a counter, looping while a condition holds, and printing five times.
Explore dictionaries, or maps, in Python and C#. Learn key-value pairs, create and modify entries, print the entire dictionary, and delete items with the del keyword.
Define a class as the blueprint for objects, add a private name field, and show how to instantiate an employee object, using a main method with pass to avoid errors.
Create a Python constructor to initialize an Employee object's name by passing a name argument to __init__ and assign it to a private double-underscore variable using self.
Demonstrate implementing a C# employee class with a getter and setter for name that uppercases values and flags name changes, then print an introduction via a demo class.
Explore implementing Python getters, setters, and properties to manage an employee name, refactoring from get_name/set_name to a property with @property and @name.setter.
Explore four pillars of object-oriented programming—abstraction, encapsulation, inheritance, polymorphism—through a salary calculator that computes weekly salaries for permanent and contractor employees via a base employee class in C# and Python.
Create an abstract employee base class for inheritance in Python, with an abstract determine weekly salary method that takes weekly hours and wage, preventing instantiation of the base class.
Inherit from a base employee to create permanent and contractor classes. Override weekly salary and compute permanent pay as 40 hours times wage, with no overtime, in Python and C#.
Create multiple employee objects (permanent and contractor), store them in a generic list of employee, and demonstrate polymorphic behavior in C# and Python.
Demonstrate polymorphic salary calculations for contractors and permanent employees by paying 50 hours at 70 and 40 hours at 70, using C# and Python to illustrate.
Develop comfort with Python basics for developers by comparing Python to what you know in C-sharp, practice leveraging Python's power, and get up and running quickly.
WHO IS THIS COURSE FOR?
5 REASON TO LEARN PYTHON