Python Tutorial for Beginners 30 - How To Create Modules in Python 3

preview_player
Показать описание
In this video I am going to show you How To Create Modules in Python 3. So what is a module in Python? it turns out a module in Python is just a .py file which have some Python code(Python class or Python method).We can reference any Python file as a module. The name of the module will be the name of the file. I will cover How to import the class within the same directory or sub directory? in order to import classes from files within the same directory, we can in Python 3:

from .user import User

#PythonTutorialforBeginners #ProgrammingKnowledge #LearnPython #PythonCourse
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Dude.. I love all your tutorials ..Keep on making such quality videos..

lmvysakh
Автор

Have been watching your videos for years. Thanks alot man. I am known for being a good programmer but I always recommend your channel to those who want to learn and give you all the credit for it

GamingBoxChannel
Автор

i am a student of b.tech final year...campusings are knocking at the door...in this time your all videos are very much useful for this oop of you so much for this playlist

siddharthabanerjee
Автор

Great Work as Usual. Lots of Encouragement & Appreciation.
With hope for a lot more to Learn !

sameast
Автор

thank you from country georgia tbilisi .

serious
Автор

it is really helpful for me thank you soo much Sir

adilbadshah
Автор

Ive been learning python, although ive subbed your channel, today i decided to check out OOPs videos and man i love how its made, i wouldnt say im an expert at it now but youve explained it very well for a newbie like me to understand. Apparently, we tend to forget some of it as we progress to different topics which is sad oh well.

kieran
Автор

why is self not passed in two functions in myfunctions.my class ..isnt it mandatory to pass self to any function?

acsmailacs
Автор

Hi, i like your teach and demos. as per your video i have tried to get the results, but lool i can't, TypeError: unsupported operand type(s) for *: 'int' and 'NoneType' can you please help on this.

ASKJYO
Автор

in my pycharm not working import like "from rectangle import ...", but working '"from dir.rectangle import ...". thanks

neofit
Автор

i get a error: AttributeError: module 'getfile' has no attribute 'add'

tjoshggaming
Автор

What is the program seen on the screen that your typing in?

PilotOdyssey