Explain the meaning of the pop operation when the index is zero, in the context of working with arrays or lists.
Python
How is the analysis and evaluation of task complexity performed when interviewing a developer candidate?
What parameter is automatically passed to a method marked as @classmethod when it is called?
How does a transaction work? What happens during BEGIN and COMMIT?
There is a large important report that takes a long time to generate. We cache it but do not know how often to update it (at different periods depending on data changes). How is cache invalidation handled in this case, and how should it be done?
Do you have experience developing a project from scratch?
What will be in variable D and why? def foo(): >>>>>return (["foo",1]) D = {"A": [1,2], foo: False, foo(): True, (1,): "123"}
What are the advantages and disadvantages of ORM?
Can you list the main data sorting methods you know?
What problems can occur when transferring a file between servers? What should be paid attention to?
Were there any difficulties when increasing the load (50,000 operations per day)? What did the system hit?
Can you name the key components of the SQLAlchemy library you usually work with?
Is it possible to implement functions in Python, and how to do it?
Are you attending an interview at our company for the first time?
Is it possible to return a different function from the current function in programming?
What are the main criteria that are important to you when choosing a new professional position?
Is it possible to create a decorator that accepts parameters?
import aiohttp import asyncio async def fetch_all_tickets(self, ticket_ids: list, max_concurrent_requests: int =10): semaphore = asyncio.Semaphore(max_concurrent_requests) async with aiohttp.ClientSession() as session: tasks = [self._get_ticket(ticket_id, session, semaphore) for ticket_id in ticket_ids] tickets = [] for task in tasks: ticket = await task if ticket is not None: tickets.append(ticket) return tickets
What steps should be taken if a web application uses too much memory?
[name] asked: What will be the values of the counter (count) for functions a and b after a single call to each?