Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
Tell me how mutable data types in Python differ from immutable ones. Give examples and explain why it matters in practice.JuniorA service has a function def add_tag(tag, tags=[]), and after a few calls, the results start containing tags that belong to other calls. What's going on, and how do you fix it?Mid-level