How to use modules properly in any programming language | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to use modules properly in any programming language

Please help!

10th Jul 2020, 1:21 PM
Harsh Sharma
Harsh Sharma - avatar
5 Answers
+ 1
Javascript const path = require("path"); Python3 import * from Tkinter
10th Jul 2020, 1:24 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 8
Modules are for code separation and reusability. If you have some code (multiple) that you are gonna use hundred of times then you define it in separate file and import it whenever you need.
10th Jul 2020, 1:25 PM
Raj Chhatrala
Raj Chhatrala - avatar
0
Thank you all
10th Jul 2020, 2:07 PM
Harsh Sharma
Harsh Sharma - avatar
0
For your help!!
10th Jul 2020, 2:07 PM
Harsh Sharma
Harsh Sharma - avatar
- 2
Can you explain more
10th Jul 2020, 1:25 PM
Harsh Sharma
Harsh Sharma - avatar