Skip to content

Commit 9d3e23c

Browse files
authored
practice8.py (#15)
* Add files via upload * Final Practice 8 * Output of Exercise 8 * Updated README.md with Exercise 8 * Update README.md
1 parent e96c4a2 commit 9d3e23c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Images/8.PNG

1.89 KB
Loading

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
| 24 | [Code](practice24.py) | [Output Not Available]()
1414
| 27 | [Code](practice27.py) | [Output](Images/27.png)
1515
| 5 | [Code](practice5.py) | [Output](Images/practice5.py.jpg)
16+
| 8 | [Code](practice8.py) | [Output](Images/8.PNG)
1617
------------------------------------------------------
1718
## Requirements:
1819

practice8.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#EXERCISE 8 - Sorting a string
2+
3+
str= input("Enter any string to be sorted :")
4+
sorted_str="".join(sorted(str))
5+
print(sorted_str)

0 commit comments

Comments
 (0)