{"id":37756,"date":"2016-09-14T23:32:38","date_gmt":"2016-09-15T04:32:38","guid":{"rendered":"http:\/\/a00344371.wordpress.com\/?p=167"},"modified":"2016-09-14T23:32:38","modified_gmt":"2016-09-15T04:32:38","slug":"importing-and-using-modules-libraries","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/importing-and-using-modules-libraries\/","title":{"rendered":"Importing and using modules\/ libraries"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/a00344371.wordpress.com\/2016\/09\/15\/importing-and-using-modules-libraries\/\"><a href=\"https:\/\/a00344371.wordpress.com\">Programming Fundaments<\/a><\/a><\/em><br \/><\/p>\n<p>To use a moodule is necesary to have a text editor creating your cade in the text editor, creating a script, and the files create a module, this can be exported to the python program using the command import(). When ypu have your strings saved , it must be saved with .py at the end the you can use the next command<\/p>\n<pre><span class=\"gp\">&gt;&gt;&gt; <\/span><span class=\"kn\">import<\/span> example_function<\/pre>\n<p>As this does not import the text of the function but the function itsel creatin a whole function with only a couple words in the python interpreter<\/p>\n<p>For more information an examples check out:\u00a0https:\/\/docs.python.org\/3\/tutorial\/modules.html<\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/a00344371.wordpress.com\/167\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/a00344371.wordpress.com\/167\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=a00344371.wordpress.com&#038;blog=115285426&%23038;post=167&%23038;subd=a00344371&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Programming Fundaments To use a moodule is necesary to have a text editor creating your cade in the text editor, creating a script, and the files create a module, this can be exported to the python program using the command import(). When ypu have your strings saved , it must be saved &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/importing-and-using-modules-libraries\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Importing and using modules\/ libraries<\/span><\/a><\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[37,24,33],"class_list":["post-37756","post","type-post","status-publish","format-standard","hentry","category-blogs","category-syndicated","tag-programming","tag-python","tag-tc101"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=37756"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37756\/revisions"}],"predecessor-version":[{"id":37757,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/37756\/revisions\/37757"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=37756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=37756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=37756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}