0

class Tweet: def _init_(self,message): self.x=message a = Tweet('nishqnt') print(a.x)

What is the problem with this python3 code

10th Apr 2020, 2:49 PM
Nishant Pratap Singh
Nishant Pratap Singh - avatar
1 Answer
+ 2
Use double instead of single underscores before and after the init method.
10th Apr 2020, 2:53 PM
Jolomi Tosanwumi