how to use % in a string python code example Example: print string python str1 = "Hello World" print(str1)