We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5005b8e commit 0f0da1cCopy full SHA for 0f0da1c
python/examples/string-replace-method.py
@@ -0,0 +1,8 @@
1
+message1 = "Hi, I'm a Python Expert!"
2
+new_message1 = message1.replace("Python", "Ruby")
3
+print(new_message1)
4
+# Hi, I'm a Ruby Expert!
5
+
6
+message2 = "Where can you find what you need to finish the project that you just started."
7
+new_message2 = message2.replace("you", "I", 2)
8
+print(new_message2)
0 commit comments