print string python 3 code example Example 1: python print format print(f'I love {Geeks} from {Portal}') Example 2: print python 3 a = 3 print(a)