The code you have written is erroneous.
Assuming this is the correct code:
class A:
def __init__(self, s):
self.s=s
def print(self):
pass
a = A('John')
a.print()
Since you are invoking `a`'s print() method, which has nothing but a `pass` statement, the output will be nothing.