Robotics & Artificial Intelligence

Write a Python program to demonstrate the use of the join function.

Python String Manipulation

2 Likes

Answer

list1 = ["Riya", "Akshat", "Gem"]
new_string = ",".join(list1)
print(new_string)

Output

Riya,Akshat,Gem

Answered By

2 Likes


Related Questions