PyData Careers
20.8K subscribers
205 photos
4 videos
26 files
351 links
Python Data Science jobs, interview tips, and career insights for aspiring professionals.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Interview question

What is __slots__?

Answer: By default, class instances store their attributes in the internal dictiondictct__. This is flexible, but it requires more memory and makes access to fields a bit slower, because the search is done in the dictionarslotsts__ allows you to fix a set of allowed attributes and abandon the usedictct__. Instead of a dictionary, Python allocates compact slots — thereby reducing the memory consumption for each object and speeding up access to attributes. This is especially important when millions of class instances are created in a program or the performance of data access is critical.

There is one restriction: it is not possible to add an attribute that is notslotsts__. To retain the ability to dynamically create fields, you can dictct__ to the list of slots.

tags:
#interview

@DataScienceQ
Please open Telegram to view this post
VIEW IN TELEGRAM
6👎1
❗️LISA HELPS EVERYONE EARN MONEY!$29,000 HE'S GIVING AWAY TODAY!

Everyone can join his channel and make money! He gives away from $200 to $5.000 every day in his channel

https://t.iss.one/+YDWOxSLvMfQ2MGNi

⚡️FREE ONLY FOR THE FIRST 500 SUBSCRIBERS! FURTHER ENTRY IS PAID! 👆👇

https://t.iss.one/+YDWOxSLvMfQ2MGNi
3
Question from the interview

What is a message broker and which ones are typically used with Python?

Answer: A message broker is an intermediary component that accepts messages from one service and delivers them to another, allowing microservices and asynchronous tasks to interact without direct connection. It ensures reliable delivery, queues, routing, and scalability.

In Python projects, RabbitMQ, Apache Kafka, and Redis are often used as simple broker solutions (for example, in combination with Celery). The choice depends on the tasks: Kafka for stream processing, RabbitMQ for flexible routing, and Redis for simple queues.


tags: #interview

@DataScienceQ
Please open Telegram to view this post
VIEW IN TELEGRAM
5
Interview question

What is an S3 storage and what is it used for?

Answer: S3 (Simple Storage Service) is a cloud-based object storage service designed for storing any type of files, from images and backups to static websites.

It is scalable, reliable, and provides access to files via URLs. Unlike traditional file systems, S3 does not have a folder hierarchy — everything is stored as objects in "buckets" (containers), and access can be controlled through policies and permissions.


tags: #interview

@DataScienceQ
Please open Telegram to view this post
VIEW IN TELEGRAM
6
Question from the interview

Why don't you need to store a session when using JWT?

Answer: JWT contains all the necessary information about the user directly in the token, including the expiration date and roles. The server simply verifies the token's signature and does not store any data between requests, so a separate session storage is not required.

tags: #interview

@DataScienceQ
Please open Telegram to view this post
VIEW IN TELEGRAM
3
What is NoneType?

NoneType — is a type to which the object None belongs, which is used to indicate an absent or undefined value. In Python, it is unique — there is only one instance of this type, that is, the None itself

@DataScienceQ 💚
Please open Telegram to view this post
VIEW IN TELEGRAM
2👍1