Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save naemazam/6fef33e3a42d91a20522ef70ad347bc8 to your computer and use it in GitHub Desktop.
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.
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