Created
August 14, 2017 18:50
-
-
Save liavkoren/5c9d9bf51f5cd0d3219341630b0b735f to your computer and use it in GitHub Desktop.
work around paypal's self-defeating security feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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