Hi — good question. I have only done the Coursera version of the Andrew Ng ML course. The Coursera version is from 2012, so still old but more recent. I have heard from others that the Stanford version has more mathematical rigour. I know from experience that the Coursera version has decent, tight quizzes for which you get feedback and decent programming assignments. The assignments are in Matlab, but I have heard from others that implementing them in Python is a good exercise.
In balance, from what I have heard about the Stanford version, the Coursera version would be a better bet for an ML beginner since it provides more structure and is more closely aligned with general ML usage.