⁉️ Interview question
What is the output of the following code?
Answer:
1
#️⃣ tags: #python #advanced #coding #programming #interview #strmethod #object #dev
By: t.iss.one/DataScienceQ 🚀
What is the output of the following code?
class A:
def __init__(self):
self.x = 1
def __str__(self):
return str(self.x)
a = A()
print(a)
Answer:
#️⃣ tags: #python #advanced #coding #programming #interview #strmethod #object #dev
By: t.iss.one/DataScienceQ 🚀