print variable in python 2 code example Example: print variable python str1 = "Hello World" print(str1)