Assigning card values
Instead of making a function that maps a number from 1 to 52 you can reduce your domain to 1 to 13, and use modulo 13 to every number. That will reduce 75% of your conditions. It is done with a bit of modulo math.
Then this function becomes quite short:

def getPoints(n):
    n = (n-1) % 13 + 1
    #the ace values
    if n == 1:
        return [1,11]
    #the regular card values
    if 2&lt;=n&lt;=10:
        return [n]
    if 11&lt;=n&lt;=13:
        return [10]