Toptube Video Search Engine



Title:#45 Python Tutorial for Beginners | Modules
Duration:07:20
Viewed:609,343
Published:11-08-2018
Source:Youtube

Check out our courses: Spring and Microservices Weekend Live Batch : https://bit.ly/spring-live-weekend Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://bit.ly/java-spring-cloud For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 TELUSKO Android App : https://bit.ly/TeluskoApp Discord : https://discord.gg/D8hWe9BqfF In this lecture we will learn: - What is a module in Python? - Use of module - How to create a module in Python? - Advantages of modules - Steps to add a separate module - Different ways to import a module #1 - Debugging simply means removing bugs. - The concept of modules is used when instead of writing a big software in one file, we will break it down into small parts. - A module is a file containing Python definitions and statements. It can consist of variables, functions, classes, etc. - We have to import a module to use the defined functions in it. - Module name is the file name with the extension .py. - Any number of modules can be created and we can also import them into one file. - Definitions from a module can be imported into other modules or the main module also. - We have to import the module to use its definitions in the code. When the interpreter encounters an import statement, it imports the module if the module is present in the search path. - There are some in-built modules present inside python. - We can also define our modules and use them in code, and they are known as user-defined modules. #2 Advantages of Modules:- - If we want to change anything in one module then that change will not reflect in any other module. - Reuse the same modules in different projects that have similar features. #3 Steps to add a separate module:- 1. New - Python File 2. Write the name of a new Python File ( name of a module) #4 Different ways to import a module:- 1. import module_name (Definitions of all functions can be accessed by using module_name) 2. from module_name import function_name ( We can use the definition of a particular function) 3. from module_name import * ( Definition of all functions can be used) Python Tutorial to learn Python programming with examples Complete Python Tutorial for Beginners Playlist : https://www.youtube.com/watch?v=hEgO047GxaQ&t=0s&index=2&list=PLsyeobzWxl7poL9JTVyndKe62ieoN-MZ3 Python Tutorial in Hindi : https://www.youtube.com/watch?v=JNbup20svwU&list=PLk_Jw3TebqxD7JYo0vnnFvVCEv5hON_ew Github :- https://github.com/navinreddy20/Python- Java and Spring Framework For beginners with Spring Boot : - http://bit.ly/3LDMj8D Java Tutorial for Beginners (2023) :- http://bit.ly/3yARVbN Editing Monitors : https://amzn.to/2RfKWgL https://amzn.to/2Q665JW https://amzn.to/2OUP21a. Subscribe to our other channel: Navin Reddy : https://www.youtube.com/channel/UCxmk... Telusko Hindi : https://www.youtube.com/channel/UCitz... Donation: PayPal Id : navinreddy20 Patreon : navinreddy20 http://www.telusko.com/contactus



SHARE TO YOUR FRIENDS


Download Server 1


DOWNLOAD MP4

Download Server 2


DOWNLOAD MP4

Alternative Download :