string merge python\ code example
Example 1: python concatenate strings
x = ‘apples’
y = ‘lemons’
z = “In the basket are %s and %s” % (x,y)
Example 2: combine two strings python
>>> 'a' + 'b' + 'c'
'abc'
x = ‘apples’
y = ‘lemons’
z = “In the basket are %s and %s” % (x,y)
>>> 'a' + 'b' + 'c'
'abc'