
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'.
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.
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.
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.
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#.
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