The computer knows that it's supposed to display Hello world! because of the print() instruction.
Hello world!
print()
Did you notice that Hello, World! was displayed on another line beneath the code?
Hello, World!