Created
December 14, 2019 09:38
-
-
Save SANTOSHSHARMA11/0c7807321ae43620492319739720d8e2 to your computer and use it in GitHub Desktop.
It converts the digit to word # PYTHON
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
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey frnd's i will upload lots of code further regarding python
and you can ask for any help i will be glad