print a string python2 code example
Example 1: print in python 2
# Print is a keyword in python2, so it works more like this
print ""
# Also like this
print 1+1
Example 2: print variable python
str1 = "Hello World"
print(str1)
# Print is a keyword in python2, so it works more like this
print ""
# Also like this
print 1+1
str1 = "Hello World"
print(str1)