Top Categories
what is difference between method and function in python
- Category:
- Sub Category:
#code_fix #python #python_tutorials #what_is_difference_between_method_and_function_in_python what is difference between method and function in python methods called with objects and can change object properties as well. function can call without object and they can not change object properties i
#code_fix #python #python_tutorials #what_is_difference_between_method_and_function_in_python what is difference between method and function in python methods called with objects and can change object properties as well. function can call without object and they can not change object properties itself. syntax to define function in python or how to create function in python. def Any_Function_name(): define function functionality. examples of functions and method Here is code used in video. name = "Rajiv" print(name.upper()) def addnumbers(): num1 = 10 num2 = 20 result = num1+num2 print(result) return result addnumbers()