top of page

03.02.2018: One Lesson of Python

  • Writer: Steven C. Mills
    Steven C. Mills
  • Mar 3, 2018
  • 1 min read

Today's soundtrack is Smash Mouth: Fush Yu Mang.

I'll be working on modules in this chapter of Coding Projects in Python. Modules automate lots of ways of doing things, like randomizing options (random), communicating online (socket), or open a web browser (webbrowser).

First, import the module, then type the name of the module before the function. Modules can also be imported only in part, if there is only a selected feature needed, by using "from." Finally, modules can be renamed by commanding import x as x.


Comments


bottom of page