missing 3 required positional arguments

technical talkiess
0

 



2) agar apne constructor bana hai aur usme apne parameter pass nahi kiye object banate time to ye wala error atta hai 


Traceback (most recent call last):

  File "c:\Users\ukv-208\Downloads\prac\python\oops.py", line 14, in <module>

    vishal = Person()

             ^^^^^^^^

TypeError: Person.__init__() missing 3 required positional arguments: 'bname', 'agae', and 'beducation'



Solution :- Pass the all parameter when you create the object

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)