+ 1
Modules vs functions vs methods
what is the difference between modules and functions and methods things has turnd messy especially I'm a Java learner and my python class turned upside down !
2 Respostas
+ 1
well google is my best friend on that
but sometimes you don't find what do you need
+ 1
"method" is a function that is a attached to an object or class.
A module is a group of defined functions, classes, consrants, etc. In Python, you create a module by simply putting related stuff in a single file. The module name is the file name. Then you can import that file into your program.