The computer knows that it's supposed to display Hello, World! because of the print() instruction.

Did you notice that Hello, World! was displayed on another line beneath the code?