Transition from C# to Python
2h 17mIntermediate2020-12-18
Authors

Joe Marini
Senior Developer Advocate at Google, Developer
Course details
Expanding your C# knowledge to include Python gives you a competitive advantage in the job marketplace. In this course, Joe Marini helps you translate your knowledge into the Python language. Python and C# share many similarities but are different in important ways. Joe explains the difference between C# and Python comment syntax. Python’s conditional statements and loop control statements are somewhat limited compared to C#. Joe walks you through the differences. Functions are a basic part of most programming languages. Joe shows you how several important functions work in Python. Python supports class definitions, single and multiple inheritance, abstract classes, and custom functionality. Joe compares and contrasts these with C# functionality. Joe shows you how to build and work with Python arrays of various data types, how to declare and use dictionaries in Python, and how to use iterators in Python. In conclusion, Joe discusses common operations like strings and exceptions.
Skills covered
C#PythonProgramming LanguagesOpen SourceMicrosoftSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - From C# to Python
- 02 - What you should know
- 03 - Getting set up
- 04 - Comparing C# and Python
1. Basic Language Constructs
- 05 - A tale of two Hello Worlds
- 06 - Comments and DocStrings
- 07 - Variables and data types
- 08 - Conditional statements
- 09 - Loops
- 10 - Challenge - Language constructs
- 11 - Solution - Language constructs
2. Functions
- 12 - Defining and calling functions
- 13 - Named and default parameters
- 14 - Keyword-only parameters
- 15 - Lambda functions
3. Classes and Objects
- 16 - Defining classes and methods
- 17 - Inheritance
- 18 - Abstract classes
- 19 - Interfaces
- 20 - Magic methods and properties
4. Collections
- 21 - Arrays and lists
- 22 - Dictionaries
- 23 - Iterators
5. Common Operations
- 24 - Built-in functions
- 25 - Strings
- 26 - Exceptions
- 27 - Scope blocks
- 28 - Challenge - Pig Latin
- 29 - Solution - Pig Latin
Conclusion
- 30 - Conclusion
Related courses
- Advanced C# Programming Concepts
- C# Hands-on Practice with Data-Structures
- Advanced C#: Functional Programming Patterns
- Ten Tips for the C# Developer
- C# and .NET Essential Training
- Mastering AI Tools for Efficient C# Development
- Advanced C#: Classes, Records, and Structs
- C# and .NET Development with VS Code