Category: Python
-
Comparing a Python function with a C# method
On my way to understanding Python I learned how to declare a Python function. Example for a simple add numbers function: The analogous add method in C# would be: Let us compare the syntax. One obvious difference is naming conventions for methods or functions. In Python you use lowercase letters and underscores for semantic separation,…