From 67070e5bbffd1bfe81907297e3f40cd14429c69b Mon Sep 17 00:00:00 2001 From: Ashutoshranjan31011955 <90490407+Ashutoshranjan31011955@users.noreply.github.com> Date: Tue, 5 Oct 2021 04:33:59 -0700 Subject: [PATCH] Create Sort numeric strings in a list in Python by Naive Methodby --- Sort numeric strings in a list in Python by Naive Methodby | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Sort numeric strings in a list in Python by Naive Methodby diff --git a/Sort numeric strings in a list in Python by Naive Methodby b/Sort numeric strings in a list in Python by Naive Methodby new file mode 100644 index 0000000..1496c3f --- /dev/null +++ b/Sort numeric strings in a list in Python by Naive Methodby @@ -0,0 +1,6 @@ +Naive Method + numeric string sorting +for i in range(0, len(test_list)) : + test_list[i] = int(test_list[i]) +test_list.sort() +print ("The resultant sorted list : " + str(test_list))