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