+ 1
Which operator is used to concatenate two strings ??
6 odpowiedzi
+ 2
python:
str1, str2 = 'string1' , 'string2'
string = str1 + str2
print (string)
string = ''.join([str1, str2])
print (string)
the join method is more (memory) efficient if you concatenate large number of strings.
+ 6
python: "+"
java: "+"
php: "."
c: "+"
might be other methods
+ 2
The add operator in most languages e.g. "one " + "two"
+ 1
yes it is 🇳🇬Brains
+ 1
In Python better use .format():
str3 = '{} {}'.format(str1, str2)
+ 1
Many ways lead to Rome.