why isn't text inside init printing? | SoloLearn: Learn to code for FREE!

0

why isn't text inside init printing?

class example(): def __init__(): print("Class: Example") son=example

3/3/2021 6:00:53 AM

MUDIT JAIN

3 Answers

New Answer

+2

son = example()

0

you should create the instance of the class . See visph code on how to create instance

0

Okay thanks everybody