Swift could've easily replaced python. but the language got complex and is now a baby C++.
Those are pretty different languages. One you just run as a script with no compilation and no static typing, the other is fully compiled and linked into a binary. How could they replace each other? And what’s the complexity now that even remotely approaches c++?
If you give a Swift file a shebang, it’ll execute as a standalone script.
I still don’t agree they’re necessarily as overlapped as the other person claims but there is a decent area where Swift is easy enough to replace Python tooling