Learn Python: Modules

Learn how modules work in the Python programming language.

Start[missing "en.views.course_landing_page.learn-python-3.course_illustration" translation]
Modules: Python
Lesson 1 of 1
  1. 1

    In the world of programming, a great deal of emphasis is placed on making code reusable. In most cases, we write code so that it can be reusable by ourselves. But sometimes we share code that's he...

  2. 2

    [...] is just the beginning. There are hundreds of Python modules that you can use. Another one of the most commonly used is [...] which allows you to generate numbers or select items at random...

  3. 3

    Notice that when we want to invoke the [...] function we call [...] . This is default behavior where Python offers a namespace for the module. A namespace isolates the functions, classes, and ...

  4. 4

    Let's say you are writing software that handles monetary transactions. If you used Python's built-in floating-point arithmetic to calculat...

  5. 5

    You may remember the concept of scope from when you were learning about functions in Python. If a variable is defined inside of a function, it will not be accessible outside of the function....

  6. 6

    You've learned: - what modules are and how they can be useful - how to use a few of the most commonly used Python libraries - what namespaces are and how to avoid polluting your local namespace - ...

Learn Python: Modules

Start[missing "en.views.course_landing_page.learn-python-3.course_illustration" translation]