python 3 print variable code example Example 1: print python print('Hello, world!') Example 2: print() print("this is the print function!")