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

4 lines
75 B
Python

v1 = "hello world"
v2 = v1.replace("l", "L")
print v2 # prints heLLo worLd