{"id":48309,"date":"2024-11-07T18:19:11","date_gmt":"2024-11-07T18:19:11","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=48309"},"modified":"2024-11-07T18:19:12","modified_gmt":"2024-11-07T18:19:12","slug":"comp-sci-python-modules","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/comp-sci-python-modules\/","title":{"rendered":"Comp sci: Python modules"},"content":{"rendered":"\n<h2>Self-tutoring about computer science: the tutor looks at what is meant by a module in Python.<\/h2>\n<p>\nPython has the notion of a module. Yet, what is a module, exactly?<\/p>\n<p>\nA module, as I understand, is a .py file that contains re-usable code, such as classes and\/or functions. The idea is that one can import what one needs from a module for one&#8217;s own purpose.<\/p>\n<p>\nThe idea of a Python module enables convenient, elegant organization. One might write a new module which includes relevant functions or classes from others, plus a few of one&#8217;s own, then submit it alongside the program which depends on it. Such an arrangement reduces the risk of certain dependencies being absent.<\/p>\n<p>\nSource:<\/p>\n<p><a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2021\/07\/working-with-modules-in-python-must-known-fundamentals-for-data-scientists\/#:~:text=In%20Python%2C%20Modules%20are%20simply,to%20include%20in%20your%20application.\">analyticsvidhya.com<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about computer science: the tutor looks at what is meant by a module in Python. Python has the notion of a module. Yet, what is a module, exactly? A module, as I understand, is a .py file that contains &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/comp-sci-python-modules\/\"> <span class=\"screen-reader-text\">Comp sci: Python modules<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[3448],"class_list":["post-48309","post","type-post","status-publish","format-standard","hentry","category-computer-science","tag-python-modules"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/48309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=48309"}],"version-history":[{"count":4,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/48309\/revisions"}],"predecessor-version":[{"id":48313,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/48309\/revisions\/48313"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=48309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=48309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=48309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}