Skip to content

Instantly share code, notes, and snippets.

@ahmedshahriar
Created November 26, 2020 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmedshahriar/3c99ff11781c2b17ba889be20de1a234 to your computer and use it in GitHub Desktop.
Save ahmedshahriar/3c99ff11781c2b17ba889be20de1a234 to your computer and use it in GitHub Desktop.
"""
simplify price with currency sign to number
"""
# sample
txt = "$5,200"
txt[1:].replace(',','')
# output
# 5200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment