I am new to Python and it seems to have a lot of nice functions that I don\'t know about. What function can I use to get the root site name? For example, how would I get
What version of Python are you learning with? Note that SilentGhost's answer is for Python 3.0, while Alabaster Codify's will work with the 2.x series.