Practice math with Python

I have just created 2 scripts. One script is to give my 8 year the chance to practice multiplication and the other is to practice division.

My next step is to combine them both in to one single script and give her the ability to choose if she wants multiplication, division or both.

In the division script, I added the correctMessage() and incorrectMessage() so that when I combine the two scripts, I can just use the functions instead of writing code too often.

I have to be honest, I am kind of proud of myself on this one. I know it is simple, but it is a real world thing that I got to solve with Python. She needs to practice and I don't want to have to sit there and make up problems all of the time. And she has flashcards, of course, but this also gave me the chance to practice my skills.

AND, my son (10 yrs old) loves programming, so it gives me the oppotunity to teach him something new as well.

Multiplication:

import random

totalActivities = int(input("how many math problems would you like? "))
lowestNumber = int(input("What should the lowest digit be? "))
highestNumber = int(input("What should the highest digit be? "))
correctAnswers = 0
wrongAnswers = 0


def doMath():
    problemNumber = 1
    global correctAnswers
    global wrongAnswers
    while problemNumber < totalActivities + 1:
        a = random.randint(lowestNumber, highestNumber)
        b = random.randint(lowestNumber, highestNumber)

        print(f"#{problemNumber}: {a} * {b} = ")
        ans = int(input())

        if ans == a * b:
            print("Good Job")
            correctAnswers += 1
        else:
            print("You missed this one")
            wrongAnswers += 1

        problemNumber += 1


doMath()
print(f"Total right answers: {correctAnswers}. Total wrong answers: {wrongAnswers}. You got {correctAnswers/totalActivities*100}%")

division:

import random

correctAnswers = 0
wrongAnswers = 0

lowDividend = int(input("Lowest dividend: "))
highDividend = int(input("Highest dividend: "))
totalProblems = int(input("How many problems would you like? "))


def correctMessage():
    global correctAnswers
    print("Good Job")
    correctAnswers += 1


def incorrectMessage():
    global wrongAnswers
    print("That was not correct")
    wrongAnswers += 1


def division():
    problemNumber = 1
    divisorList = list(range(lowDividend, highDividend))
    dividendList = list(range(lowDividend, highDividend))

    while problemNumber <= totalProblems:

        dividend = random.choice(dividendList)
        divisor = random.choice(divisorList)
        problemStart = dividend * divisor
        print(f"#{problemNumber}: {problemStart} / {divisor} = ")

        ans = int(input("what is the answer "))

        if ans == problemStart / divisor:
            correctMessage()
        else:
            incorrectMessage()

        problemNumber += 1


division()
print(f"Total right answers: {correctAnswers}. Total wrong answers: {
      wrongAnswers}. You got {correctAnswers/totalProblems*100}%")

I would be very happy for any feedback that anyone has about this to optimize the code a bit better before I turn it all in to one script.