ye wala error jab aap string ko split bana na chate ho ar apne agar split nahi likha taab atta hai
Printing statement is executiong....
TypeError: 'str' object is not callable
Error Code:-
@email.setter
def email(self,other):
print("Printing statement is executiong....")
new_data = other.split("@")[0]
fname = new_data(".")[0]
lname = new_data(".")[1]
self.fname = fname
self.lname = lname
Solution:-
@email.setter
def email(self,other):
print("Printing statement is executiong....")
new_data = other.split("@")[0]
fname = new_data.split(".")[0]
lname = new_data.split(".")[1]
self.fname = fname
self.lname = lname
Thanks you for commenting your questions. I will see question and respond you.