Created
October 20, 2021 10:08
-
-
Save naemazam/6fef33e3a42d91a20522ef70ad347bc8 to your computer and use it in GitHub Desktop.
Input three characters from the keyboard and sort the output according to the ASCII code value from small to large, with a space between the characters.
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
str1 = input("Enter Character: ") | |
result = ' '.join(sorted(str1)) | |
print(result, end=" ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment