def function(test_list: tuple = ()): test_list.append(1) print(test_list) test_list = () function() # function(test_list) # function() # print(test_list) # ################## obj_t = (1, [1.0], "1") obj_t[0] = 2 # obj_t[1].append(2) # print(obj_t) #
Python
Have you worked with an ML model: did you build the backend infrastructure and the surrounding framework without touching the model itself?
def is_palindrome(string_to_check: str) -> bool: left, right = 0, len(string_to_check) while left < right: while left < right and not string_to_check[left]. left += 1 while left < right and not string_to_check[right] right -= 1
What is a palindrome?
How does a Python dictionary handle hash collisions and why are `True`, `1`, and `1.0` not stored as three different keys?
Why does the mutable default argument value in Python persist between function calls?
Tell me about your work experience, especially your last job and, if desired, about the previous one.
def function(test_list: list = []): test_list.append(1) print(test_list) test_list = [] function() function(test_list) function() print(test_list)
Have you worked with Kafka yourself or did DevOps provide the infrastructure and configurations?
Lesha found a bedbug on the shelf. -> True Fly! Oh, fly! Great as a lion! Oh, mind! Oh, mind! -> True "........,,,! " -> False def is_palindrome(string_to_check: str) -> bool:
How was the large Kafka event log cleared: was a retention policy set?
How did the backend interact with the ML model: where was it hosted and what protocol did you use to communicate with it?
Could duplicates of events appear in Kafka and how did you solve this problem?
obj = {True: 1, 1: 2, 1.0: 3, "1": 4} print(obj) # {True: 3, "1": 4}
Have you worked with AI agents or neural networks for coding?
Why is the value for the key `True` equal to `3` in the dictionary `{True: 1, 1: 2, 1.0: 3, "1": 4}`, and not `1`?
How did the system work before transitioning to event-driven/Kafka: was it REST API on FastAPI?