Dive Into Python Output Error
===

I'm running this code from Dive Into Python:

    def buildConnectionString(params):
        """Build a connection string from a dictionary of parameters.
        Returns string."""
        return ";".join(["%s=%s" % (k, v) for k, v in params.items()])
    if __name__ == "__main__":
        myParams = {"server":"mpilgrim", \
                    "database":"master", \
                    "uid":"sa", \
                    "pwd":"secret" \
                    }
        print buildConnectionString(myParams)


The book says its output should be:


    server=mpilgrim;uid=sa;database=master;pwd=secret


But when I run it it comes out in reverse:


    pwd=secret;database=master;uid=sa;server=mpilgrim


Any ideas why?

