How to get output without brackets & commas ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get output without brackets & commas ?

words=["python" , "fun"] words.insert(1,"is") print(words) >>> ["python","is","fun"] But i want >>> python is fun

8th Jul 2020, 3:10 AM
W.D.M.M.S.Karunarathna
W.D.M.M.S.Karunarathna - avatar
1 Answer
+ 4
delimter=" " print(delimeter.join(words))
8th Jul 2020, 3:25 AM
Shobhith J B
Shobhith J B - avatar