Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions example input and output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Sorting the list element in python

input[1]:

Enter the list elements:10 30 20

Output[1]:

Before sorting : [10, 30, 20]
After sorting in ascending order [10, 20, 30]
After sorting in dscending order [30, 20, 10]

input[2]:

Enter the list elements:500 300 100

Output[2]:

Before sorting : [500, 300, 100]
After sorting in ascending order [100, 300, 500]
After sorting in dscending order [500, 300, 100]

input[3]:

Enter the list elements:25 15 30 10 5

Output[3]:

Before sorting : [25, 15, 30, 10, 5]
After sorting in ascending order [5, 10, 15, 25, 30]
After sorting in dscending order [30, 25, 15, 10, 5]