use / python string code example Example 1: print string python str1 = "Hello World" print(str1) Example 2: how to create a string in python var1 = "A String"