Login
|
Signup
langref.org
-
python
add..
all
clojure
cpp
csharp
erlang
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Lists
Output
Join the elements of a list, separated by commas
Given the list
[Apple, Banana, Carrot]
produce
"Apple, Banana, Carrot"
python
print ", ".join(['Apple', 'Banana', 'Carrot'])
print ", ".join(['Apple', 'Banana', 'Carrot'])
Submit a new solution for
python
There are 28 other solutions in
additional
languages (
clojure
,
cpp
,
csharp
,
erlang
...)