Python-File to Dictionary? : I have two columns in this text file like this:

    William 2
    David 3
    Victor 5
    Jack 1
    Gavin 4

And I want it to be like this in a dict:

    d = {'William': 2,'David': 3,'Victor': 5,'Jack': 1,'Gavin': 4}

Is anyone knows how to do this in python?
Please help me! Thank You!