filmov
tv
Free Python tutorial for beginners- Programming - HASATTR() & DELATTR() in class def () __init__

Показать описание
Free Python tutorial for beginners- Python Programming - HASATTR() & DELATTR() in class def () __init__ method
#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 #pythonhasattr #pythondelattr
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 um has attribute and delete the attribute how to use it in class definite but we can use it in class let's see this
let me open idle
so here anywhere you can use has attribute so let's see hash attribute means
you are just checking that
class or any variable is present or not this is what has attribute let's see now I'm just mentioning like class my class and then course name
equal to python chapters equal to 10 like that I am just defining the variable now let's see this I want to print it and then use has attribute Open Bracket my class so you can see here it's a object comma name now let's see this my class I can see like course is present or not like that I am just checking that column is present or not see now this will return false because we have only codes name not having course now I will check like
course name it is true so this is what we have to use it like as attribute and delete attribute we also have one thing that is Del ADTR daily
variable now let's see this
I'm just writing this again
now [Music] if you print course name it will say like true now what I'm going to do here is that I have to use it Del at course name now check this
now it is false because the course name is deleted as we have passed Del ADTR attribute and then selected this course name now if you see this the same thing chapters
it is returning true but I am deleting the attribute chapters
now if you just check this one it will provide for us so this is what where we have to use it has attribute and then delete attribute see you in the next class bye
#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 #pythonhasattr #pythondelattr
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 um has attribute and delete the attribute how to use it in class definite but we can use it in class let's see this
let me open idle
so here anywhere you can use has attribute so let's see hash attribute means
you are just checking that
class or any variable is present or not this is what has attribute let's see now I'm just mentioning like class my class and then course name
equal to python chapters equal to 10 like that I am just defining the variable now let's see this I want to print it and then use has attribute Open Bracket my class so you can see here it's a object comma name now let's see this my class I can see like course is present or not like that I am just checking that column is present or not see now this will return false because we have only codes name not having course now I will check like
course name it is true so this is what we have to use it like as attribute and delete attribute we also have one thing that is Del ADTR daily
variable now let's see this
I'm just writing this again
now [Music] if you print course name it will say like true now what I'm going to do here is that I have to use it Del at course name now check this
now it is false because the course name is deleted as we have passed Del ADTR attribute and then selected this course name now if you see this the same thing chapters
it is returning true but I am deleting the attribute chapters
now if you just check this one it will provide for us so this is what where we have to use it has attribute and then delete attribute see you in the next class bye