RosettaCodeData/Task/Binary-strings/Python/binary-strings-8.py

4 lines
75 B
Python
Raw Permalink Normal View History

2013-04-10 12:38:42 -07:00
v1 = "hello world"
v2 = v1.replace("l", "L")
print v2 # prints heLLo worLd