What is a generator in Python?
Python
What is an iterator?
You have a list of dictionaries with user information. You need to: 1. Filter users older than 18 years 2. Save the filtered data into a single JSON file 3. Create and save a separate file with statistics for all filtered users: - Total number of users - Average age (rounded to 1 decimal place) - Minimum and maximum age users_data = [ { "name": "Alexey", "age": "25", "birth_date": "[phone]", "city": "Moscow" }, { "name": "Maria", "age": "17", "birth_date": "[phone]", "city": "Saint Petersburg" }, { "name": "Ivan", "age": "30", "birth_date": "[phone]", "city": "Moscow" }, { "name": "Elena", "age": "22", "birth_date": "[phone]", "city": "Novosibirsk" }, { "name": "Yves", "age": "9", "birth_date": "[phone]", "city": "..." } ]
What commands and approaches do you use for working with processes in Linux?
What are the guarantees of message delivery?
What does the process with ID 1 represent in Linux?
Are you familiar with Linux commands?
If you first increase a value by 20%, then decrease the resulting value by 20%, what will be the result relative to the initial value?
Repeating elements (Find Duplicates) Condition: Given a slice of strings. Return a slice of strings that appear more than once in the original slice. The order of elements in the result should be in the order of their first appearance in the original slice. Input data: []string — slice of strings Output data: []string — strings that appear more than once, in the order of first appearance Constraints: - 0 <= len(input) <= 10^4 - Each string consists of Latin letters, length 1..50 Example: Input: ["a", "bb", "bb", "aa", "a", "a"] Output: ["a", "bb"] def find_duplicates(items): # TODO: write solution here return []
1. Filter users over 18 years old 2. Save the filtered data into a single JSON file 3. Create and save a separate file with statistics for all filtered users: - Total number of users - Average age (rounded to 1 decimal place) - Minimum and maximum age
What is the general name of the process with PID 1?
What databases have you worked with?
Have you ever written programs for processing network traffic?
What databases have you had to work with as a developer?
Can an instance of a user-defined class be used as a key in a dictionary?
What salary range are you aiming for?
Do you have knowledge of how processes are created and interact in Linux?
Are you considering a salary of 300-350 and are you willing to discuss compensation?
How do you relate to criticism of your work and what does constructive criticism mean to you?
Implement a curried addition function add(a) that takes a number and returns another function that takes a second number. The final call returns the sum of the two numbers.