+ 3
How would you make methods in Python?
I know what methods are and what functions are and I know how to make functions but how do you make methods.
7 Answers
+ 5
Not to be overly short, but the object-oriented programming section of the tutorial covers this. Finish the tutorial and you will learn how to make methods in python. Also, methods are functions.
+ 10
def do_nothing():
pass
+ 5
def methodName(Params if any):
body of method
+ 4
" both of your answers are describing functions with parameters." correct, which is what you asked for. functions == methods
+ 3
thanks guys but both of your answers are describing functions with parameters.