How do you concatenate strings in python?



How do you concatenate strings in python?..

Answer / Lalit Kumar Chaudhary

You can concatenate strings using the '+' operator or the join() method. For example: n str1 = 'Hello' n str2 = 'World'n result1 = str1 + str2n result2 = ' '.join([str1, str2]) - Both outputs: 'Hello World'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is super method in python?

1 Answers  


How do you protect python source code?

1 Answers  


What are the types of inheritance in python?

1 Answers  


How multithreading is achieved in python?

1 Answers  


What is difference between input and raw_input in python?

1 Answers  


Is there a switch..case statement in python?

1 Answers  


What is final and super keyword difference between them?

1 Answers  


Is r easier than python?

1 Answers  


In python, how do I read a file line-by-line into a list?

1 Answers  


Define monkey patching?

1 Answers  


Can you modify the maximum depth for a recursive function in Python? If yes how?

1 Answers  


How do you delay time in python?

1 Answers  


Categories