Today I had the problem of displaying the version of the interpreter in a perl and a python script.
In Perl there is a Variable with the Version:
print "Perl version: ".$^V."\n";
Python also has this information:
print "Python version: " + sys.version