Skip to content

Instantly share code, notes, and snippets.

@SANTOSHSHARMA11
Created December 14, 2019 09:38
Show Gist options
  • Save SANTOSHSHARMA11/0c7807321ae43620492319739720d8e2 to your computer and use it in GitHub Desktop.
Save SANTOSHSHARMA11/0c7807321ae43620492319739720d8e2 to your computer and use it in GitHub Desktop.
It converts the digit to word # PYTHON
p = input("enter digit")
a = {"1": "one", "2": "two", "3": "three"} # example no you can change it by your self
out = ""
for ch in p:
out += a.get(ch, "!") + " "
print(out)
@SANTOSHSHARMA11
Copy link
Author

hey frnd's i will upload lots of code further regarding python
and you can ask for any help i will be glad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment