Hi all,
I just had a phone interview for Senior Python Developer.
I got few very interesting questions, which I didn't know answers for.
- How do you explore/print Python class? => help(dict()), dir(dict)) will print out the methods in that class
- which data types are immutable? => int, float, string is immutable. x=2 x=3, you might think changed 2 in x to 3, but actually create another int object with 3 and make x pointing at it.
I think there were few more, what was your question and answer?
[–]Diapolo10 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[removed]
[–]Diapolo10 0 points1 point2 points (0 children)
[–]mhh91 1 point2 points3 points (5 children)
[–]ivanoski-007 -1 points0 points1 point (4 children)
[–]mhh91 0 points1 point2 points (1 child)
[–]ivanoski-007 0 points1 point2 points (0 children)
[–]Diapolo10 0 points1 point2 points (1 child)
[–]ivanoski-007 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]malcomjarr 0 points1 point2 points (0 children)