first = 'a'
second = 1
third = 'c'
i want the result to be 'a1c' using only first,second and third variables and only string concatenation.
How shall i achieve this.?
first = 'a'
second = 1
third = 'c'
i want the result to be 'a1c' using only first,second and third variables and only string concatenation.
How shall i achieve this.?
You can simply say output = first+str(second)+third
This is a duplicate post of How can I concatenate a string and a number in Python?