Python Data Science Jobs & Interviews
20.4K subscribers
188 photos
4 videos
25 files
326 links
Your go-to hub for Python and Data Science—featuring questions, answers, quizzes, and interview tips to sharpen your skills and boost your career in the data-driven world.

Admin: @Hussein_Sheikho
Download Telegram
⁉️ Interview question

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:
1

#️⃣ tags: #python #advanced #coding #programming #interview #strmethod #object #dev

By: t.iss.one/DataScienceQ 🚀