To make use of Python for Machine Learning, you need to know only the basics of it, which include concepts such as printing to the screen, getting the user input, conditional statements, looping statements, object-oriented programming, etc. These concepts are required to be able to write your code and understand the code written by others.
If you are looking for an online course to learn Machine Learning, check out this Machine Learning Course by Intellipaat.