# String Concatenation using '+'
value = "Python" + " " + "Programming"
print(value)
Python Programming
20
¶# Assignment 20 to the variable integer
integer = "20"
19
¶# Assignment 19 to the variable integer2
integer2 = "19"
2019
¶# Concatenating step 2 and step 3
result = integer + integer2
print(result)
2019
Or this can be concatenated using formatting
style too..
integer = 20
integer2 = 19
# Type casting into integer
result = int('%d%d' % (integer, integer2))
result
2019