Tokenize a string: Difference between revisions
m
→[[Python]]
m (→[[Java]]: added a "." to fully comply with the specification) |
m (→[[Python]]) |
||
Line 60:
print '.'.join("Hello,How,Are,You,Today".split(','))
Or replace the '.' with '\n' and do:
print "\n".join("Hello,How,Are,You,Today".split(','))
==[[Ruby]]==
|