The award-winning author of The Music of the Primes explores the future of creativity and how machine learning will disrupt, enrich, and transform our understanding of what it means to be human. Can a well-programmed machine do anything a human can-only better? Complex algorithms are buying our groceries, picking our partners, and driving our investments. They can navigate more data than a doctor or lawyer and act with greater precision. For many years we've taken solace in the notion that they can't create. But now that algorithms can learn and adapt, does the future of creativity belong to machines too? It is hard to imagine a better guide to the bewildering world of artificial intelligence than Marcus du Sautoy, a celebrated Oxford mathematician whose work on symmetry in the ninth dimension has taken him to the vertiginous edge of mathematical understanding. In The Creativity Code he considers what machine learning means for the future of creativity. Programs like Deep Dream produce drip paintings that could fool students of Jackson Pollock; Deep Jazz composes music in the style of Duke Ellington. But do these programs just mimic, or do they have what it takes to create? Du Sautoy argues that to answer this question, we need to understand how the algorithms that drive them work-and this brings him back to his own subject of mathematics, with its puzzles, constraints, and enticing possibilities. Where most recent books on AI focus on the future of work, The Creativity Code moves us to the forefront of creative new technologies and offers a more positive and unexpected vision of our future cohabitation with machines.