python2 print code example Example 1: phyton "2.7" print print "Text to print" x = 5 print "Value: ", x Example 2: print python 3 a = 3 print(a)