Lesson 1 - definition of 'libraries', 'modules' and 'functions' #664
In Lesson 1 - Analyzing Patient Data, 'Loading data into Python' section, when referring to 'libraries', perhaps it would be better to state from the beginning what a 'library', a 'module' and a 'function' are.
The lesson would benefit if this distinction is made early on. Something along the lines of 'Python has functions that come by default (like print() for example), but there are also a lot of very useful functions in so-called libraries. Each library has functions that do specific tasks organized in different units called modules. Thus we can use the functions that come by default, or we can use the functions within libraries. Whenever we want to use functions within a given library, then we have to first import that library, and then call the functions using the dotted notation (library.function).'
The text was updated successfully, but these errors were encountered:
In correspondence to issue swcarpentry#664 Add a short explanation of the differences between libraries and modules I agree with the point of introducing the concepts of 'libraries' and 'modules'. Because if not explaining them, there might be confusions to audiences. But I feel that the main thread of this lesson is to talk about Python fundamental concepts and dealing with datasets, and the terminologies of 'libraries' and 'modules' are not that much important. So, as a tradeoff, I choose to add a quick note below the first appearance of the concept 'module', so the audience won't get confused here while still following the main thread of this lesson.