<jupyter_start><jupyter_text>oop day 2<jupyter_code>class student():
    def __init__(self,name,regd):
        self.name=name
        self.regd=regd
y=student('kalinga',500)
y.name

class student():
    def __init__(self,name,regd):
        self.name=name
        self.regd=regd
    def xyz(self):
        print(f"hello!i am {self.name} and regd no is {self.regd}")
z=student('kalinga',500)
z.xyz()<jupyter_output>hello!i am kalinga and regd no is 500<jupyter_text>class object attribute<jupyter_code>class student():
    course= "intro to ML"# course is an attributr defined as class object
    def __init__(self,name,regd):
        self.name=name
        self.regd=regd
    def xyz(self):
        print(f"hello!i am {self.name} and regd no is {self.regd}")
z=student('krishna',420)
z.name

class student():
    
    def __init__(self,name,regd):
        self.name=name
        self.regd=regd
    def xyz(self,score):
        print(f"hello!i am {self.name} and regd no is {self.regd}and score is {score}")
z=student('Raj',122)
z.xyz(10)<jupyter_output>hello!i am Raj and regd no is 122and score is 10<jupyter_text>wap to calculate area and circumference of a circle   attribute=radius method circumference-> evaluate circumference of a circle .<jupyter_code>class circle():
    def __init__(self,r):
        self.r=r
        self.area=3.14*(self.r)*(self.r)
    def circumference(self):
        print(f"circumference is {2*3.14*(self.r)}")
z=circle(2)
z.circumference()
z.area()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13320079522862824, 'fraction_numerical': 0.02054340622929092, 'mean_word_length': 3.7634069400630916, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '585719', 'license': 'MIT', 'n_tokens_mistral': 584, 'n_tokens_neox': 552, 'n_words': 127, 'path': 'Python-Week 3/18 august 2021 Day 8.ipynb', 'repo_name': 'ParadoxPD/Intro-to-machine-learning', 'size': '1509'}