/ Python And R Data science skills: 09 init method Create a fully initialised object in telugu

Saturday 17 February 2018

09 init method Create a fully initialised object in telugu

09 init() method - Create a fully initialised object
In [32]:
class age:
    def yourage(self):
        self.n=33
        
    def printage(self):       
        print(self.n)
my=age()
my.yourage()
my.printage()
33
In [33]:
class age:
    def yourage(self):
        self.n=33
        
    def printage(self):       
        print(self.n)
my=age()
#my.yourage()
my.printage()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-33-2e739a5c1325> in <module>()
      7 my=age()
      8 #my.yourage()
----> 9 my.printage()

<ipython-input-33-2e739a5c1325> in printage(self)
      4 
      5     def printage(self):
----> 6         print(self.n)
      7 my=age()
      8 #my.yourage()

AttributeError: 'age' object has no attribute 'n'
In [34]:
class age:
    def __init__(self):
        self.n=33
     
        
    def printage(self):       
        print(self.n)
my=age()

my.printage()
33
In [11]:
class age:
    def __init__(self):
        self.n=33
    
        
    def printage(self):       
        print(self.n)
my=age()
#my.yourage()
my.printage()
33
In [35]:
class age:
    def __init__(self):
        self.n=33
    
        
    def printage(self):       
        print(self.n)
my=age()
#my.yourage()
my.printage()
my1=age()
my1.printage()
33
33
In [37]:
class age:
    def __init__(self,n):
        self.n=n
    def printage(self):       
        print(self.n)
my=age(66)
my.printage()
my1=age(44)
my1.printage()
66
44
In [38]:
class Person:
    def __init__(self, name):
        self.name = name
    def sayHi(self):
        print ('Hello, my name is', self.name)

p = Person('Venkat')
p.sayHi()
Hello, my name is Venkat

01) Data Science, Deep Learning,& Machine Learning videos in telugu డేటా సైన్స్ ,మెషిన్ లెర్నింగ్ ట్రైనింగ్ వీడియోస్

02) BluePrisam videos in telugu బ్లూ ప్రిజం ట్రైనింగ్ వీడియో

03) Automation Anywhere videos in Telugu ఆటోమేషన్ ఎనీ వెర్ ట్రైనింగ్ వీడియోస్

04) RPA UI PATH videos in telugu UI పాత్ ట్రైనింగ్ వీడియోస్

05) AWS videos in Telugu అమెజాన్ వెబ్ సర్వీస్ అడ్మిన్ ట్రైనింగ్ వీడియోస్

06) DevOps training videos in telugu డెవోప్స్ ట్రైనింగ్ వీడియోస్

07) Digital marketing videos in telugu డిజిటల్ మార్కెటింగ్ ట్రైనింగ్ వీడియోస్

08) Angular 2 and 4 videos in telugu Angular 2 and 4 ట్రైనింగ్ వీడియోస్

09) Oracle WebLogic Server admin videos in Telugu ఒరాకిల్ వెబ్ లాజిక్ సర్వర్ అడ్మిన్

10) How to Improve Wordpress website speed for Google PageSpeed Insights videos in Telugu వర్డ్ ప్రెస్ వెబ్సైటు స్పీడ్ ని ఆప్టిమైజ్

11) please subscribe my youtube channel ప్లీజ్ subscribe my యూటుబ్ ఛానల్

12) Angular Js and NodeJs fast Track videos in telugu Angular and node js ఫాస్ట్ ట్రాక్ ఇన్ తెలుగు

13) FB Marketing 01 Create Page videos in telugu పేస్ బుక్ మార్కెటింగ్ ట్రైనింగ్ వీడియోస్

14) What is google adwords videos in Telugu గూగుల్ ఆడవర్డ్స్ ట్రైనింగ్ వీడియోస్

15) Data Science training Python videos in telugu పైథాన్ ప్రోగ్రామింగ్ వీడియోస్ ఫర్ డేటా సైన్స్ అండ్ మెషిన్ లెర్నింగ్

16) Python videos in telugu పైథాన్ ప్రోగ్రామింగ్ ట్రైనింగ్ వీడియోస్

17) please subscribe my youtube channel ప్లీజ్ subscribe my యూటుబ్ ఛానల్

18) How to verify website in bing webmaster Telugu - Bing webmaster tools Training Videos

19) yandex webmaster tools videos in Telugu

20) Introduction to google,bing, yandex,baidu webmasters videos in telugu

21) WordPress Training videos in telugu WordPress ట్రైనింగ్ వీడియోస్ in Telugu

22) Blogger training videos in telugu బ్లాగర్ ట్రైనింగ్ వీడియోస్ ఇన్ తెలుగు

23) Html and CSS training videos in telugu Html and Css ట్రైనింగ్ వీడియోస్ ఇన్ తెలుగు

24) What is Html 5 and new Elements In Telugu Html 5 ట్రైనింగ్ వీడియోస్ ఇన్ తెలుగు

25) SQL training videos in telugu SQL ట్రైనింగ్ వీడియోస్ ఇన్ తెలుగు

26) Javascript introduction And what is Javascript videos in telugu JavaScript ట్రైనింగ్ వీడియోస్ ఇన్ తెలుగు

27) About JQuery Training videos in Telugu JQuery ట్రైనింగ్ వీడియోస్ ఇన్ తెలుగు

28) AngularJS videos In Telugu AngularJs 1 ట్రైనింగ్ వీడియోస్ ఇన్ తెలుగు

29) What is Php and Uses Of php In Telugu PHP ట్రైనింగ్ వీడియోస్ ఇన్ తెలుగు

30) Ethical Hacking Demo in telugu ఎథికల్ హ్యాకింగ్ డెమో ఇన్ తెలుగు

31) Mean Stack demo in Telugu మీన్ స్టాక్ డెమో తెలుగు లో

32) please subscribe my youtube channel ప్లీజ్ subscribe my యూటుబ్ ఛానల్

No comments:

Post a Comment