Skip to main content
  1. Posts/

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:

  1. Make a variable with a string
  2. then do whatever the variable is .replace
  3. make a string with the symbol you want to replace it with
  4. make a comma
  5. change the symbol with whatever you want
  6. use print

This is what it should look like

h = "725, 000"
print(h.replace(',', '.'))