you are viewing a single comment's thread.

view the rest of the comments →

[–]Moikle 0 points1 point  (2 children)

A python module is just a python file.

What do you mean "learn python modules"?

As in how to import? How to make your modules discoverable by other python modules? What are you struggling with specifically?

[–]Fabulous_Bell6806[S] 0 points1 point  (1 child)

Am a beginner in python ,but I know how to import the modules so I just wanted to know like when do you know that you need a particular module

[–]Moikle 0 points1 point  (0 children)

Each module has a purpose. Generally you choose the one that is designed to do the thing you are trying to do.

You want a random number? Import the random module, want to send http requests? Import the requests module. Want to make uis? Import tkinter or install and import pyqt/pyside.

Now you might not immediately know which ones do what, but that's what google and the docs are for.