Run
class Laptop: def details(): print('Hello! I am a laptop.') laptop1 = Laptop() laptop1.details()
Output