Strings | Sololearn: Learn to code for FREE!

+1

Strings

Is it necessary to add two + signs in combining 2 strings ?

8/1/2017 12:04:23 PM

Noor E Mobeen

33 Answers

New Answer

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

Yes it's must!

-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 =“”

-1

Is the output using string regardless of single or double quotation always be with single quotation?

-1

Help me for " " Answers

-1

for those seeking answer for “ “. \’