Skip to content

Instantly share code, notes, and snippets.

@liavkoren
Created August 14, 2017 18:50
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 liavkoren/5c9d9bf51f5cd0d3219341630b0b735f to your computer and use it in GitHub Desktop.
Save liavkoren/5c9d9bf51f5cd0d3219341630b0b735f to your computer and use it in GitHub Desktop.
work around paypal's self-defeating security feature
lookup = {
'1': 'one',
'2': 'two',
'3': 'three',
'4': 'four',
'5': 'five',
'6': 'six',
'7': 'seven',
'8': 'eight',
'9': 'nine',
'0': 'zero',
'-': 'dash',
}
def trans(input):
words = [lookup[char] for char in input]
return ' '.join(words)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment