# Create a class named 'PrintDT' to print various numbers of
# different datatypes by creating different functions with the same name
# 'python_data’ having a parameter for each datatype. (example : tuple, list,
# string)

class PrintDT:
    def py_data(self,list):
        self.list=[]
        print(self.list)
       
    def py_data(self,tuple):
        self.tuple=()
        print(tuple)
       
    def py_data(self,str):
        self.str=''
        print(str)
       
p=PrintDT()
p.py_data([1,2,3])
p.py_data(('a',[8,4,6],"mouse"))
p.py_data('amit')
# Create a class named 'PrintDT' to print various numbers of
# different datatypes by creating different functions with the same name
# 'python_data’ having a parameter for each datatype. (example : tuple, list,
# string)

class PrintDT:
    def py_data(self,list):
        self.list=[]
        print(self.list)
       
    def py_data(self,tuple):
        self.tuple=()
        print(tuple)
       
    def py_data(self,str):
        self.str=''
        print(str)
       
p=PrintDT()
p.py_data([1,2,3])
p.py_data(('a',[8,4,6],"mouse"))
p.py_data('amit')
# Create a class named 'PrintDT' to print various numbers of # different datatypes by creating different functions with the same name # 'python_data’ having a parameter for each datatype. (example : tuple, list, # string)