Machine learning (ML) has become widespread in industry, technology and society in recent years. This spread has not even stopped at physics. In this lecture, the basics of modern ML are taught. The paradigms of supervised, self-supervised and unsupervised learning will be discussed. In addition to classical ML, we will also discuss the methods of Deep Learning in detail and conclude the lecture with generative approaches. The lecture aspires to deepen the subject taught using exercises and examples.