How do I use modules | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I use modules

There are alot of modules in python how do i know them do i need to remember some of them I mean what are the most important modules

25th Dec 2019, 11:59 AM
Pattern
Pattern - avatar
2 Answers
+ 2
Well os is important, it offers methods for accessing things such as command prompt.
25th Dec 2019, 12:02 PM
Seb TheS
Seb TheS - avatar
+ 2
I've needed: os (for file handling, you can for example check which files exist in the current directory. math (for trigonometric functions, pi and sqrt) random (to add randomized functionality) timeit (to compare speed of different pieces of code) pygame (to handle graphics, controls and audio)
25th Dec 2019, 12:09 PM
Seb TheS
Seb TheS - avatar