Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
#47 Python Tutorial for Beginners | Special Variable __name__ part 2
Play lesson

Python for Beginners (Full Course) | Programming Tutorial - #47 Python Tutorial for Beginners | Special Variable __name__ part 2

Unlock Python Mastery: Dive into 75+ Engaging Tutorials and Transform Your Programming Skills with Telusko Today!

5.0 (1)
23 learners

What you'll learn

Understand and set up Python development environments using PyCharm and Jupyter Notebook.
Learn to work with various Python data types, variables, and operators.
Master Python programming fundamentals, including loops, conditional statements, and functions.
Gain proficiency in file handling, error management, and utilizing Python libraries like NumPy for data manipulation.

This course includes

  • 17.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this lecture we will learn: - main () function in Python - How special variable is executed with main()? - How to restrict the execution of statements present inside the main() function? - Starting point of execution of code #1 - When we define a function, then we will have to call that function also to print or perform something. - main() is the starting point of execution. - main() function will also work only when we call the main() function. - From the main() function, we can call all other functions that are available in the code. - When you import the library or a module, it will execute all statements present inside it. - And if it contains the callable main() function, then main() will call all functions present in the imported module. - We can also call the main() function only when we want to execute the particular file as a Standalone program. - We can control the execution flow of main() by using: if __ name__ == __main()__ - So by using this, some set of statements will be executed only when we call the __name__. Github :- https://github.com/navinreddy20/Python- Editing Monitors : https://amzn.to/2RfKWgL https://amzn.to/2Q665JW https://amzn.to/2OUP21a. Check out our courses: AI Powered DevOps with AWS - Live Course :- https://go.telusko.com/AIDevOps-AWS Coupon: TELUSKO10 (10% Discount) Complete Java Developer Course Batch-4: https://go.telusko.com/Complete4 Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) Udemy Courses: Spring: https://go.telusko.com/udemyteluskospring Java:- https://go.telusko.com/udemyteluskojava Java Spring:- https://go.telusko.com/Udemyjavaspring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Follow Navin Reddy on Instagram: https://www.instagram.com/navinreddy20 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

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere