Skip to content

Instantly share code, notes, and snippets.

@brandomr
Created July 13, 2016 13:32
Show Gist options
  • Save brandomr/2b0ab8fae381ef029f7472837f837ca5 to your computer and use it in GitHub Desktop.
Save brandomr/2b0ab8fae381ef029f7472837f837ca5 to your computer and use it in GitHub Desktop.
def treat_number(i):
i = str(i)
i = i.replace('+','')
i = i.replace('-','')
#i = int(i)
if i[0] == '1' and len(i) == 11:
i = i[1:11]
return i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment