How to run code

how to run the code mentioned in the video as I am a Macbook user