Special methods


class Python_lake:
    def __str__(self):
        a=return "python learning centre".upper()
        return "Python learning Centre".replace("Python Research Centre")
    
x = Python_lake()
print(x)


Comments