RosettaCodeData/Task/String-concatenation/Python/string-concatenation-2.py

6 lines
98 B
Python
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
s1 = "hello"
print ", ".join([s1, "world", "mom"])
s2 = ", ".join([s1, "world", "mom"])
print s2