+ 2
Strings
Is it necessary to add two + signs in combining 2 strings ?
35 Answers
0
hold on, let me check
+ 7
All of the following lines of code will result in a combined String like:
Hello world
print ("Hello " + "world")
print ("Hello", "world")
print ("%s %s" %("Hello", "world"))
+ 3
I am not sure if my interpretation of the question is correct. I think the question is on whether it is necessary to put two +ve signs when combining two strings are per my example below:
print("Today is " ++ "Monday")
Noor E Mobeen, I am sure you got an answer?
+ 2
Default data type in python is string
+ 1
No, It needs only one + for combining two strings.
0
@Arick house was asking generally for python lang like print( "Hello" + "World") but got it now ..
0
>>>" " help me?
0
Help me friends
0
Complete the code to create a string with double quotes what should I do in this question
0
What is the meaning of this
print (3*'7')
0
Yes it's must!
0
How to save the code it show no connection
0
Anim Kwakye Mark Kwame
- 1
it depends, what do you code look like?
- 1
yup got it thanks
- 1
>>>" " help me?
- 1
Yes you can. But preferably you would use the ',' symbol, which would also help you add other data type values to your print statement.
- 1
i dont get what ‘concatenation’ means, can someone help me?
- 1
strings var msg together ans
- 1
var s1 =“ ilove” msg+= “swift” var msg = s1 var +msg =“”