Python Data Science Jobs & Interviews
20.4K subscribers
189 photos
4 videos
25 files
330 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?
x = [1, 2, 3]
y = x
y.append(4)
print(x)

Answer:
[1, 2, 3, 4]

tags: #python #interview #coding #programming #datastructures #list #mutable #dev

By: t.iss.one/DataScienceQ 🚀
⁉️ Interview question

What is the output of the following code?
def func(a, b=[]):
b.append(a)
return b

print(func(1))
print(func(2))

Answer:
[1, 2]

#⃣ tags: #python #advanced #coding #programming #interview #defaultarguments #mutable #dev

By: t.iss.one/DataScienceQ 🚀