Both Convert string to variable name or variable type and How to use a string as a variable name in C++? answers say you can not use a string as a variable after compile time. However, they mention that higher level languages such as python can. As I understand it, Python is written in C from this https://softwareengineering.stackexchange.com/questions/20988/why-is-python-written-in-c-and-not-in-c .
So if python is written in C, and it can use string as variable, then why cant people do this in C++.
I guess the question is not clear. From the analogies in comments,
If Python is made from C, I would assume there is some function written that allows Python to be dynamic. So why cant that functionality be written without all of the other parts of Python.