python hell oworld code example Example 1: how to print hello world in python print("Hello World!") Example 2: how to print hello world in python print('Hello World')