code: def version(which="num"):
      
      if which in VERSIONS:
          return VERSIONS[which]
      else:
          raise CoconutException(
              "invalid version type " + ascii(which),
              extra="valid versions are " + ", ".join(VERSIONS),
          )
docs: Get the Coconut version.