Python Data Science Jobs & Interviews
20.6K subscribers
191 photos
4 videos
25 files
334 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?
def my_func():
return "hello", "world"

result = my_func()
print(type(result))

Answer:
<class 'tuple'>

tags: #python #interview #coding #programming #function #returnvalues #tuple #dev

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

What is the output of the following code?
def outer():
x = 10
def inner():
nonlocal x
x += 5
return x
return inner()

result = outer()
print(result)

Answer:
15

tags: #python #advanced #coding #programming #interview #nonlocal #function #dev

By: t.iss.one/DataScienceQ 🚀