ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Python Tutorial - Python GETATTR in class - How to use GETATTR __init__ in Python

Автор: KeeshtuTechnology

Загружено: 2023-08-23

Просмотров: 72

Описание: Free Python tutorial for beginners-Python Programming - GETATTR() in class def () _init_ method

Subscribe Here -https://www.youtube.com/@KeeshtuTechn...

#python#pythonprogramming #pythontutorial #pythonforbeginners #pythonclass #youtubechannel #pythoninstallationcomplete #pythonhowtoinstall #pythoninstall #pythondownload #pythontutorialfree #pythonyoutube #pythonenglish #pythonenglish #pythonexecvseval #pythonexec()vseval() #pythonexec() #pythoneval() #youtubeviews #pythondef #pythondef() #pythonfunctions #pythonbreak #pythoncontinue #pythonpass #pythonzip #pythonunzip #pythonprintescapecharacter #pythonrepr() #pythonreduce #pythongetattr
Please Captions on - Python in English, Python in Tamil, Python in Telugu, Python in Malayalam, Python in Chinese, Python in Japanese, Python in German, Python in Hindi, Python in French, Python full course for beginners

------------------Transcript-------------------
hello welcome to technology platform so today we are going to see like uh get attribute method how to use it in class and then you need a method let's see let me open idle

now

so as you know everything how to create a class so now see this it's class um

this is my tutorial like that I am creating a class and then course name python and then chapters I can say like 10 so that's it that's enough right now see this I want to create an object like Call my tutorial equal to now you want to use it get ATT r and then pass the class name

my tutorial just copy and paste it now I want to just select only course name see this if I want to pass this here then print

call my tutorial you'll see like python or else I want to see that chapters

just print it you will see like 10 but I don't know what is the column available we don't know right what columns are available now see this here I am giving some wrong name

course name like that I am giving it because I am not sure what is a course name so I can message like column does not exist like that I am providing a message if the column is not present in this class then it should display like this now see this I want to print it call my tutorial it gives like column does not exist but the same thing you can give it the right name [Music] course name then it will give you the the proper python like that it will give you so this is what get attribute but how we can use this in init class so that is also we can see it so that it is easy for you to understand let me open that to as well let's see this now so already you know very well so how to use the init class and all but now we want to use the get attribute to produce that let's see let me open it and then I will pass it now okay we can keep the same class my tutorial

and then I can say like Def init class and then you already know like self comma course name comma chapters selfish mandatory so we can say like self dot course name equal to course name self dot chapters equal to Chapters this is enough now you want to pass it here only so earlier how do we see like we already passed the variable now you are going to pass it here only we can say like call my tutorial equal to my tutorial you are passing right you are passing the values now so you can say like Python and then then you are passing just now only right now see this now printing

get attribute and then open and then call my tutorial and then you can give the name course name [Music] let's see this now oh what happened call my tutorial this is correct object has no attribute like that I am getting an error message oh sorry this course name yeah this is worth the issue I am not giving that right name here so to avoiding this I already mentioned like uh column does not exist so if you give the wrong name here

oh that is missing single quotes now if you see this column does not exist now if you are passing the right name here

you're getting python so not only python you're just calling now Java

10. now see this print off course name now you are getting Java so this is what how do we use it in Dev init and with the class so in class you can see I'm just passing the class variables I'm directly calling that get variable my tutorial and course name it is printing but here I am just defining self course name equal to course name I'm not passing anything here I am just passing here and then based on this values I am getting the attribute so this is what the get attribute see you in the next class bye

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Python Tutorial - Python GETATTR in class - How to use GETATTR __init__  in Python

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

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

Скачать аудио

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

Python tutorial - Python SETATTR in class - How to use SETATTR in Python

Python tutorial - Python SETATTR in class - How to use SETATTR in Python

Dynamic Attribute Handling in Python: getattr(), setattr(), hasattr(), delattr()

Dynamic Attribute Handling in Python: getattr(), setattr(), hasattr(), delattr()

Почему ваш код не соответствует Python (и как это исправить)

Почему ваш код не соответствует Python (и как это исправить)

Мне 73. Я жалею, что понял это только сейчас.

Мне 73. Я жалею, что понял это только сейчас.

Пайтон для начинающих - Изучите Пайтон за 1 час

Пайтон для начинающих - Изучите Пайтон за 1 час

Алгоритмы на Python 3. Лекция №1

Алгоритмы на Python 3. Лекция №1

Python if __name__ == '__main__': наглядное объяснение

Python if __name__ == '__main__': наглядное объяснение

Python tutorial - Python Regular Expression Regex - How to use Regex in Python - Regex-Search()

Python tutorial - Python Regular Expression Regex - How to use Regex in Python - Regex-Search()

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

Ускоренный курс LangChain для начинающих | Учебное пособие по LangChain

Ускоренный курс LangChain для начинающих | Учебное пособие по LangChain

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

Я ненавижу длинные цепочки If-Elif: этот шаблон проектирования решил эту проблему раз и навсегда

Вся IT-база в ОДНОМ видео: Память, Процессор, Код

Вся IT-база в ОДНОМ видео: Память, Процессор, Код

Excel против Power BI против SQL против Python | Сравнение на фондовом рынке

Excel против Power BI против SQL против Python | Сравнение на фондовом рынке

Python — полный курс для начинающих. Этот навык изменит твою жизнь.

Python — полный курс для начинающих. Этот навык изменит твою жизнь.

Румынская математическая олимпиада

Румынская математическая олимпиада

CI/CD — Простым языком на понятном примере

CI/CD — Простым языком на понятном примере

Трансформатор - как работает и как устроен?

Трансформатор - как работает и как устроен?

ТАКОЕ НЕ ПОКАЖУТ В ВУЗах-  Как работают и для чего нужны транзисторы ? Что такое PN переход?

ТАКОЕ НЕ ПОКАЖУТ В ВУЗах- Как работают и для чего нужны транзисторы ? Что такое PN переход?

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



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