Change Commas to a Period
·72 words·1 min
In this blog I will show you how to change a comma into a period.
Example:
Hello, World - Hello. World
Steps:
- Make a variable with a string
- then do whatever the variable is
.replace - make a string with the symbol you want to replace it with
- make a comma
- change the symbol with whatever you want
- use print
This is what it should look like
h = "725, 000"
print(h.replace(',', '.'))