+ 1

Is there any string method named "sorted" in python3?

30th Jun 2020, 5:43 PM
Jaheen Khan
Jaheen Khan - avatar
8 odpowiedzi
+ 8
????? ??????, it is also a bit confusing, when you show here a sample using reversed(). This does reverse the list, but does not any sorting. Reversed sorting is done like this: sorted(a, reverse=True) and it gives a sorting in descending order.
30th Jun 2020, 6:48 PM
Lothar
Lothar - avatar
+ 3
Kiibo Ghayal So then can i use "appended" or "reversed" as well?
30th Jun 2020, 5:49 PM
Jaheen Khan
Jaheen Khan - avatar
+ 2
Kiibo Ghayal Got it bro. . Thanks a lot... Plz upvote my this post... Pleaseeess
30th Jun 2020, 5:55 PM
Jaheen Khan
Jaheen Khan - avatar
+ 2
Hey Jaheen Khan we use sorted() function to sort the elements Of List And Yes You Can Use append() to add element at last position of the list and reverse() to reverse your list.
30th Jun 2020, 5:55 PM
Rahul Saxena
Rahul Saxena - avatar
+ 2
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 Ohh thank u thank u... I was searching this mention option.... 😊
30th Jun 2020, 6:05 PM
Jaheen Khan
Jaheen Khan - avatar
+ 2
Got it Ryan Daniel Thnks a lot
30th Jun 2020, 6:05 PM
Jaheen Khan
Jaheen Khan - avatar
+ 2
Glad To Help You Jaheen Khan
30th Jun 2020, 6:11 PM
Rahul Saxena
Rahul Saxena - avatar
0
Yes
2nd Jul 2020, 1:56 AM
LOKESH CHAUHAN
LOKESH CHAUHAN - avatar