Computer Science, asked by Anonymous, 2 months ago

Write the python function that joins the two strings and print it.​

Answers

Answered by Anonymous
74

Answer:

This is the required Python program for the question.

def string(a,b):

   print("String a:",a)

   print("String b:",b)

   print("String after jσining:",a+b)

a="Hello "

b="World."

string(a,b)

Explaination:

To concatenate two strings, + operator is used.

Here, a and b are two strings that are jσined using + operator and displayed.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Attachments:
Answered by Anonymous
2

Answer:

Python String jo.in()

The jo.in() method provides a flexible way to create strings from iterable objects. It joins each element of an iterable (such as list, string, and tuple) by a string separator (the string on which the jo.in() method is called) and returns the concatenated string.

 \\

Similar questions