What are modules in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What are modules in Python?

I really need your help guys, because I'm stuck in 'Modules' in the Python tutorial. I need explanations please.

11th Jul 2020, 11:25 AM
Muh'd Mustafa Ibrahim
Muh'd Mustafa Ibrahim - avatar
1 Answer
+ 2
I just answered a similar question. Read through the answers in this thread https://www.sololearn.com/Discuss/2374340/?ref=app In my python, to import a module, use the import keyword. import my_module To import a specific function from the module, use the from keyword from my_module import func1
11th Jul 2020, 11:28 AM
Ore
Ore - avatar