I am looking at some videos where python is used to create buttons and other things, but where is the script saved? The video is showing the code, but not where to put it.
There are few different ways to use Python scripting in VC, but I guess you mean the Python commands.
Those are add-ons to the VC program itself, not part of a simulation layout.
I have seen the video you are refering to, though it is not intuitive to know what to search for and find the add-ons I am looking for, or to know that there is an add-on for what I am looking for.
You say that “There are few different ways to use Python scripting in VC”, I am wondering what ways?
You don’t and can’t develop the Python commands within the VC software itself but using some external editor. The simplest one is of course just Windows Notepad, but e.g. Visual Studio Code is actually pretty good free tool for Python development.
Like I said, the commands are extensions to the application itself, while the other types are part of a simulation component.