⚠ simulated AI-generated code
This code is framed as if an AI coding assistant wrote it, and has a realistic issue AI assistants actually produce — sometimes a real bug, sometimes code that runs fine but is more complicated or less idiomatic than it needs to be. It is not from a real model call. Read it like you'd review any AI suggestion — don't assume it's correct, or well-written, just because it looks polished.
An AI assistant wrote safe_divide_all(nums, divisor) to divide every number in a list by divisor, returning None for any element it can't safely compute. It never seems to crash — but check what it actually returns when something goes wrong.
fix this code so it matches
safe_divide_all([10, 20], 2) is [5, 10]. safe_divide_all([10], -2) is [-5]. safe_divide_all([1, 2, 3], 0) is [None, None, None]. safe_divide_all([], 5) is [].