system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5:Why use a primary language and a scripting language in game dev?

I've noticed that a lot of games are coded in both a primary language (eg, C++) along with a scripting language (eg Python). 

As someone who only knows scripting languages, I sort of know the difference thematically but not completely functionally.  

Basically, my question is: if you're already coding in a primary language like C++, what is the point/benefit of also having code in there that was written in a scripting language like Python? Why not do everything in C++?
gpt
Scripting languages are usually faster to work with. They don't need to be compiled, changes can be made on the fly. They don't have hard to debug memory leaks and corruption. The downside is they usually have lower performance.

The performance critical graphics engine is written in C++. The game logic is written in a scripting language.

It also allows modders to modify the game logic while keeping the source code to the engine secret.