I do not think it's a good way to do what you want. Math and logic are learned outside of programming languages.
Java is considered, quite roughly, an evolution of C ++ (I can assure you that no experienced C ++ programmer finds this), so in theory it would be easier to translate to C ++ than Python, which bears no resemblance to Java , except for the semantics of if
(nor the syntax) and something else. Python has an absurdly distant philosophy of Java.
But if you want something similar to Java you should opt for C #. This is a very similar and easy language. C ++ is difficult for a beginner who is still having trouble understanding the basic difference between languages.
If you do not know any, it will be difficult on either one. Then the difficulty is to learn the language. If he tried to learn during the translation, he could not have achieved either.
Anyone will say that Python is easier to learn than C ++, but that does not mean anything.
Either way you have to decide whether you want to learn something or if you want to save time, these things are incompatible (at least in the short term, as described).
What you should opt for I will not answer, but I point out the wrong way.