Proper concatenation

Report a typo

The most effective way to use string concatenation is to use the join() method. Combine the words you received from the input with commas and spaces between them. After that, print the text you combined.

You can use the split(" ") method to separate the words you get from the input.

Sample Input 1:

fisherman respect creation grateful matter

Sample Output 1:

fisherman, respect, creation, grateful, matter
Write a program in Python 3
...
___

Create a free account to access the full topic