September 02, 2024
Python String Concatenation
In Python you can do string concatenation through + operator. + operator is a concatenation operator for string values and it also an addition operator for numeric values. So when you want to concatenate two or more strings you can use + operator. The example of string concatenation mentioned below:
Code
var weekDaysString1 = 'Sunday,Monday,Tuesday,Wednesday,Thursday,';
var weekDaysString2 = 'Friday,Saturday';
var allWeekDays = weekDaysString1 + weekDaysString2;