Languages and Tools:
def happy(name):
return name+ " is happy doing code !"
class person:
nationality="Indian"
def_init_(self,name,age):
self.name = 'Aryan'
self.username = 'aryangulati'
self.age = '21'
self.connect = 'https://www.linkedin.com/in/aryangulati'
self.alive=True
self.hobbies=[]
def hobby_added(self):
print(f"your hobbies is added ,your like to {self.hobbies}")
def add_hobbies(self,hobbi_name):
self.hobbies.append(hobbi_name)
self.hobby_added()
def introduce(self):
print(f"my name is {self.name},my age is {self.age},I am {self.nationality}, ",happy(self.name))