How to make While Loops continue for a certain number? : I want to know how to make a While Loop to a certain number, which will be 52.

    import random

    ydeal = random.randint(1,9)
    adeal = random.randint(1,9)

    yscore = 0
    ascore = 0

    def roll():
        if deal == "!":
            print(ydeal)
            print(adeal)
            if ydeal > adeal:
                yscore + 1
            elif ydeal < adeal:
                ascore + 1
            print(yscore, ascore)

    deal = input("Your Turn: ")
    roll()

Also, I noticed that when I want to print yscore and ascore it returns the old variable value, 0, and not with the scores added.

I know this will probably get an out of topic, but I just need an answer, not add a new questions.