Sobes.tech

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": "..." } ]

158

What commands and approaches do you use for working with processes in Linux?

135

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?

108

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 []

100

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

90

Can an instance of a user-defined class be used as a key in a dictionary?

77

Do you have knowledge of how processes are created and interact in Linux?

74

Are you considering a salary of 300-350 and are you willing to discuss compensation?

73

How do you relate to criticism of your work and what does constructive criticism mean to you?

72

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.

71
/3