diff --git a/practice8.py b/practice8.py new file mode 100644 index 0000000..0b3b09e --- /dev/null +++ b/practice8.py @@ -0,0 +1,5 @@ +#EXERCISE 8 - Sorting a string + +str= input("Enter any string to be sorted :") +sorted_str=sorted(str) +print(sorted_str)