how to write output in python code example Example 1: how to print python print("Hello World") Example 2: how to print in pyhton print("Hello World!")