+ 2

Strings

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

1st Aug 2017, 12:04 PM
Noor E Mobeen
Noor E Mobeen - avatar
35 ответов
0
hold on, let me check
1st Aug 2017, 12:42 PM
vortetty
vortetty - avatar
+ 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"))
1st Aug 2017, 6:17 PM
Martin Ed
Martin Ed - avatar
+ 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?
11th May 2020, 5:01 PM
Lucky Sibanda
Lucky Sibanda - avatar
+ 2
Default data type in python is string
21st May 2020, 8:02 AM
Govardhankumar Kancheti
+ 1
No, It needs only one + for combining two strings.
3rd Oct 2020, 9:34 AM
Amir Pourhadi
Amir Pourhadi - avatar
0
@Arick house was asking generally for python lang like print( "Hello" + "World") but got it now ..
3rd Aug 2017, 6:59 PM
Noor E Mobeen
Noor E Mobeen - avatar
0
>>>" " help me?
17th Sep 2019, 1:53 PM
Israfil
0
Help me friends
24th May 2020, 7:39 AM
Tejeshwar Reddy
0
Complete the code to create a string with double quotes what should I do in this question
13th Sep 2020, 4:34 PM
oyuncu oduncu değil
oyuncu oduncu değil - avatar
0
What is the meaning of this print (3*'7')
7th Nov 2020, 12:32 PM
Mahdi Mohammadnezhad
Mahdi Mohammadnezhad - avatar
0
Yes it's must!
28th Nov 2020, 9:19 AM
Hassan Khalil
Hassan Khalil - avatar
0
How to save the code it show no connection
21st Oct 2021, 10:50 AM
Ujjwal Pandey
Ujjwal Pandey - avatar
0
Anim Kwakye Mark Kwame
18th Nov 2021, 9:27 PM
Anim kwakye Mark kwame
- 1
it depends, what do you code look like?
1st Aug 2017, 12:43 PM
vortetty
vortetty - avatar
- 1
yup got it thanks
3rd Aug 2017, 5:35 PM
Noor E Mobeen
Noor E Mobeen - avatar
- 1
>>>" " help me?
17th Sep 2019, 1:53 PM
Israfil
- 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.
27th Sep 2019, 12:41 PM
Archit Sagar
- 1
i dont get what ‘concatenation’ means, can someone help me?
27th Jan 2020, 2:53 AM
NoU287
NoU287 - avatar
- 1
strings var msg together ans
27th Mar 2020, 7:41 PM
Leela Lakkaraju
Leela Lakkaraju - avatar
- 1
var s1 =“ ilove” msg+= “swift” var msg = s1 var +msg =“”
27th Mar 2020, 7:43 PM
Leela Lakkaraju
Leela Lakkaraju - avatar