My Books Recommendations for Beginners
To dive into ML and with Python is good with
Programming Collective Intelligence
Source code may be legally obtained at
Recently, another book came out from O'Reilly:
Machine Learning for Hackers
Source code for examples there is in R.