Q. What is the output produced ?


(i) >>> "-".join(['123','365', '1319'])

(ii) >>> " ".join(['Python', 'is', 'fun'])


Answer =

(i)
>>> "-".join(['123','365', '1319'])
'123-365-1319'
>>>

(ii)
>>> " ".join(['Python', 'is', 'fun'])
'Python is fun'
>>>

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post