© Copyright 2015 - 2025
Privacy PolicyWebsite Terms1
What's the difference between a tuple and a list?
2
What is a dict and what's its most important limitation?
3
What is a "callable"?
4
Using list comprehension, print the odd numbers between 0 and 100.
5
What is pickling/unpickling?
6
What's a generator?
7
Explain the use of decorators.
8
Write a simple decorator.
9
Suppose lst is [2, 33, 222, 14, 25], What is lst[-1]?
10
Given the list lst = [1, 2, 3, 4, 4, 6, 7, 3, 4, 5, 2, 7], return only the unique values in the list.
11
What's lambda?
12
Explain *args and **kwargs
13
Is this valid in Python and why?def my_function():print my_function.whatmy_function.what = "right?"my_function() # Prints "right?"
def my_function():print my_function.whatmy_function.what = "right?"my_function() # Prints "right?"14
Given variables a and b, switch their values so that b has the value of a, and a has the value of b without using an intermediary variable.
15
How would you xor in Python?
16
What is introspection/reflection and does Python support it?
17
One thing about python OOP is that it doesn't support true private attributes/methods. How do we circumvent this limitation?
18
What's a Mixin?
19
What's a metaclass?
20
What are the Dunder/Magic/Special methods in Python? Name a few.
21
What is PEP8?
22
What is pip?
23
CheeseShop? What is that?
24
What are virtualenvs?
25
What are modules and packages in Python?
26
Bonus question: Tabs or Spaces?
Join 5K+ tech leaders
Stay up to date with Software Engineering, Distributed Teams, Agile Talent, and Future of Work content
No spam. Just great articles & insights
Thank you!
You have successfully subscribed.
Ready to start?
Get in touch or schedule a call.
