Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть 26 How to Create custom Module and Import in Python programming?

  • Free Tutorial TV
  • 2023-12-13
  • 38
26  How to Create custom Module and Import in Python programming?
Python Print function and Input FunctionPython TutorialPython Variable and TypesPython ProgrammingPython 3
  • ok logo

Скачать 26 How to Create custom Module and Import in Python programming? бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно 26 How to Create custom Module and Import in Python programming? или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку 26 How to Create custom Module and Import in Python programming? бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео 26 How to Create custom Module and Import in Python programming?

how to create built in modules in Python.

Now in the previous videos I have already discussed briefly about python modules. and how to import a

builtin module. you use the import keyword. and then you use the name of the built in module in python.

built in means this module is already present in python. so we can use these built in model in order to

perform some functionality.

So for example this math module helps us to perform some mathematical operations.

Now first of all what is a module.

So it turn outs that a module is nothing but a python file.

Now to prove my point let me just hover over this math module and just press control and hover over

it.

So right now I'm pressing control and I'm hovering my mouse all this math on the PI charm ID.

And now I'm going to click it and then I click it.

You will see this module is nothing but a file.

Right.

And inside this module we have a number of functions which we can use for example a cost function. or

a Tan function or many different functions. which we can use from this math module.

So a model is nothing but python file.

Now if a module is nothing but a python file. why don't we create a module.

And it turns out that python allows us to create our own modules.

So let's create our own modules and let me show you how you can create your own module.

And right now you can see in my project there is only one file which is hello dot

P Y and it's empty right now.

Now to create a module I'm going to just create a new file.

So right click and then new python file and this model I'm going to name it as my functions and then

press OK.

And this file is created.

So now I have two files in my project.

One is my functions and other is.

Hello dot P Y.

So let's say I want to create some functions inside this my functions dot P Y file.

So let's create some function.

I'm going to very quickly create some very basic functions which you already know in Python so.

So let's say add function which returns the addition of two numbers.

And also let's create let's say the multiply function.

So multiply and this is going to just give the product of two numbers.

So let's say this is our module.

And it has two functions.

Now somehow I need to use these two functions from my function dot P Y file.

and

Hello dot P Y file.

Now as you can see these two files are in the same directory.

**************************************************************************
please like and follow us in Facebook and Instagram.
facebook:   / technologytv  


Instagram:   / heikhamsingh  


Twitter:   / hanandkumarsing  

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]