Skip to content

Instantly share code, notes, and snippets.

@arifsuhan
Created October 4, 2020 17:26
Show Gist options
  • Save arifsuhan/ef8a350e665513b7dfe36b37e4fc4c6e to your computer and use it in GitHub Desktop.
Save arifsuhan/ef8a350e665513b7dfe36b37e4fc4c6e to your computer and use it in GitHub Desktop.
def en_to_bn(n):
temp = [ord(x) for x in n]
res = ''.join([chr(x+2486) for x in temp])
print(res)
# enter some post-code
# to english to bangla
# sorry to validation check if it's only english digits or not
user = input("Enter number:")
en_to_bn(user)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment