This falls under the case “unless the bash script is simple “.

If you consider more complex tasks, bash quickly gets unwieldy, and the situation is reversed.

Pythons has a lot of advantages, including full flexibility, error handling etc.