What will Python output when comparing two empty tuples with 'is'? And two empty lists?
Python
SQL task: write a query to get all users who invited at least one person.
How is LangChain structured? Tell me about its main components.
Do you have any questions for us regarding the role or the company?
How can you determine the HTTP request method in an application using FastAPI?
What are metaclasses in Python? Why are they needed if inheritance exists?
Can you tell us how the team process and interaction were organized in your previous company?
How does garbage collector work in Python? Tell about it.
Do you use the Java programming language in your projects?
Task 2. Merging two sorted arrays Given two sorted arrays in ascending order, nums1 and nums2. It is necessary to merge them into one sorted array in ascending order. nums1 = [1, 3, 5] nums2 = [2, 4, 6] merge_sorted(nums1, nums2) -> [1, 2, 3, 4, 5, 6]
What parameters should be considered when choosing a future professional position?
Do you have experience working with relational databases?
How did you deal with high load on the service?
What will the code with assignment and list modification (reference semantics in Python) output?
What is the purpose of the git cherry-pick command in the Git version control system?
Are you familiar with Event Sourcing? Have you used it?
Could you explain what the term ACID means in the context of databases?
What is table partitioning in PostgreSQL? How to divide a product table?
Two tables with 100 rows each with arbitrary numbers. What is the minimum and maximum number of rows that FULL OUTER JOIN can return?
# Conduct a code review, find all errors def get_first_matching_object(predicate, objects=[]): matching_objects = (obj for obj in objects if predicate(object)) if matching_objects: object = matching_objects[0] return object else: return None