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

Скачать или смотреть #46 Python Tutorial for Beginners | Special Variable __name__

  • Telusko
  • 2018-08-12
  • 500024
#46 Python Tutorial for Beginners | Special Variable __name__
teluskonavinreddytutorialjavapython
  • ok logo

Скачать #46 Python Tutorial for Beginners | Special Variable __name__ бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно #46 Python Tutorial for Beginners | Special Variable __name__ или посмотреть видео с ютуба в максимальном доступном качестве.

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

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

Cкачать музыку #46 Python Tutorial for Beginners | Special Variable __name__ бесплатно в формате MP3:

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

Описание к видео #46 Python Tutorial for Beginners | Special Variable __name__

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/udemyteluskosp...
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/udemyteluskopy...
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodo...

For More Queries WhatsApp or Call on : +919008963671

website : https://courses.telusko.com/

Instagram :   / navinreddyofficial  
Linkedin :   / navinreddy20  
TELUSKO Android App : https://bit.ly/TeluskoApp
Discord :   / discord  

In this lecture we will learn:
What is the starting point of execution of code?
What is a special variable in Python?
_name_ variable in python
How the name variable works in Python?


#1
_main_ is the starting point of the python.
The first module name is always main and the code starts from main.
_name_ is a variable name that return the __main__.
name_ is a built-in variable that evaluates the name of the current module.
The value of the name changes as per the place where it is used, so that's why it is known as a variable.
If you are an individual file or module, then the name will return main.
If you are importing another module containing the name variable in any file, then the name variable will return the name of that module.
OR,
If you are running a file as a main and using a named variable in it, then it will print the main.
But if you are printing a name that is imported as a module in another file, then it will print the module name.

#2
The use of a function with the name variable helps the interpreter in checking if it's parsing the currently executed script, or if it's temporarily parsing another external script.
if _name_ == "__main__":
This statement helps us to control the behaviour of different parts of the program.
It chooses the number of lines of codes that can be executed from the external script as well as the currently executed script depending on the scenarios.

Github :- https://github.com/navinreddy20/Python-

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

Комментарии

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

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

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

video2dn Copyright © 2023 - 2025

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