Python Tutorials - Sorted Function | How to Sort List Tuple and Dictionaries

Python Tutorials - Sorted Function | How to Sort List Tuple and Dictionaries

Amulya's Academy

5 лет назад

61,801 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@vinodch8056
@vinodch8056 - 04.07.2018 18:44

Waiting for some more videos and plz speak abut small project that will help lot of members

Ответить
@atifshaik9329
@atifshaik9329 - 11.07.2018 10:21

can you help with Memory Game programs and remote server using python

Ответить
@innocentsahir908
@innocentsahir908 - 17.07.2018 10:51

i have queries on python can u help me

Ответить
@vipin_mishra19
@vipin_mishra19 - 09.08.2018 20:25

Your voice is amazing and explanation also best

Ответить
@9336611680
@9336611680 - 23.09.2018 22:08

well explained...thanks

Ответить
@zico07
@zico07 - 13.10.2018 11:32

Liked your videos a lot. Videos are very helpful for beginners.

Ответить
@logeshk2811
@logeshk2811 - 22.12.2018 09:06

Super explanation.

Ответить
@darlolo1916
@darlolo1916 - 03.03.2019 12:24

why you ding it in shell, and how can you print it???

Ответить
@willingtushar
@willingtushar - 12.06.2019 16:58

Which mic do you use?

Ответить
@BaziJo
@BaziJo - 30.06.2019 20:56

thank you for you nice video

Ответить
@somayehmadadpour8833
@somayehmadadpour8833 - 29.08.2019 08:51

Hello dear.
Why defining function to manipulate items does not work for dictionary? Because we used it for tuple and list but not dictionary and instead you used lambda.

Ответить
@babyfox205
@babyfox205 - 23.09.2019 02:56

haha good job, I liked your explanations. Thank you for these tutorials!

Ответить
@blatogh1277
@blatogh1277 - 03.10.2019 11:05

Actually, nice

Ответить
@blatogh1277
@blatogh1277 - 03.10.2019 11:13

it is so clear OMG

Ответить
@shubhendrasingh8376
@shubhendrasingh8376 - 24.11.2019 19:14

Awesome explanation..

Ответить
@ashu60071
@ashu60071 - 31.12.2019 15:28

How to sort without inbuilt functions

Ответить
@helloworld2458
@helloworld2458 - 07.01.2020 22:04

thanks python is cool you can sort any data structure based on the index

Ответить
@helloworld2458
@helloworld2458 - 07.01.2020 22:10

which data structures can the key be used in? we can do the same in lists too right? Thanks for tips

Ответить
@ikamesh1390
@ikamesh1390 - 31.01.2020 07:56

Hi
Can we use sorted() for nested dictionaries? for ex
cars = {"bmw":{"model":"rv10","Gear":"Auto","Year":2016},"Benz":{"model":"rv20","year":2019},'Audi':{"model":"rf30", "year":2019}}
We can only use sorted() on keys. What if we want to do it for values and items?

Ответить
@-BMadhan
@-BMadhan - 19.04.2020 20:02

Your explanation and voice is good to understand

Ответить
@kushaldas8496
@kushaldas8496 - 24.04.2020 18:36

Mam at 5.30 I can't understand here how lambda function works?
Can you please explain me please mam 🙏

Ответить
@Viralvlogvideos
@Viralvlogvideos - 01.06.2020 19:06

AWESOME TUTORIAL BRUH, whats is ur age ??

Ответить
@Viralvlogvideos
@Viralvlogvideos - 01.06.2020 20:38

can u explain how key=lambda x:x[1] is working

Ответить
@eshwarvecham3647
@eshwarvecham3647 - 13.06.2020 08:53

Mam, the function secondvalue is accepting one argument but when we are calling the function i.e used in key we are not passing any argument.
Can u clarify my doubt.

Ответить
@holyshazbat1548
@holyshazbat1548 - 13.08.2020 02:08

the way you say "tuple" is very sexy..

Ответить
@77Sherms
@77Sherms - 12.11.2020 14:49

In reference to the key function, how does it know to skip the item at the next index so it sorts based on the letter? I.e. 'a' is at index [1] (which you put in the return statement) and then it sorts based on every item at every second index. So its sorting based on items at indexes [1] [3] [5 ][7] or does the indexing for each nested tuple start again? So the index number for each letter in the nested tuple is [1]? Also, I note that when you call the function in the sorted method you do not use parentheses at the end of the function I.e. normally when you call a function you put Secondvlaue(). Why is the parentheses at the end of the function not required when using it in the sorted function? Thanks. Good video btw.

Ответить
@PoojaYadav-fu6oy
@PoojaYadav-fu6oy - 25.12.2020 10:50

Ma'am you are awesome thankyou ma'am 😘💖

Ответить
@OldOne.OO1
@OldOne.OO1 - 06.01.2021 04:37

مبدعه👍

Ответить
@deepshikhakhatri3338
@deepshikhakhatri3338 - 28.01.2021 06:28

Really helpful video.....❤️

Ответить
@amiddleclassboy410
@amiddleclassboy410 - 19.02.2021 08:07

Explanation and voice both are awsm mam...like u r teaching to small kids...really awsm

Ответить
@huehuehue13
@huehuehue13 - 16.06.2021 20:42

THANKYOU SM FOR THIS! GREAT VIDEO!!!

Ответить
@madushani6844
@madushani6844 - 21.07.2021 06:47

How to write a code to get the ascending order of this kind of list 21R12014
21R22007
21R12100
21R32055 i must consider only last three numbers when sort these list with ignoring first five characters😒 Can u help me? ❤️

Ответить
@homataha5626
@homataha5626 - 05.11.2021 12:28

what if we wanted to sort the tuple by the second element?

Ответить
@karthikspartan281
@karthikspartan281 - 26.11.2021 20:00

Excellent

Ответить
@santosh_ksh7
@santosh_ksh7 - 20.01.2022 23:44

Thanks 👍

Ответить
@bhupindersingh-kf2mo
@bhupindersingh-kf2mo - 26.01.2022 12:28

thank you making this video

Ответить
@kushagraverma7400
@kushagraverma7400 - 26.01.2022 20:01

this guy is chintu from whitehat jr

Ответить
@venkatkrishnan9777
@venkatkrishnan9777 - 05.03.2022 18:57

Tq

Ответить
@sameersyed6770
@sameersyed6770 - 20.05.2022 21:26

Python program to get a list, sorted in increasing order by the last element in each tuple from a given list of non-empty tuples.. can anyone explain me in detail?

Ответить
@liri1189
@liri1189 - 12.06.2022 10:59

Dictionaries are now ordered

Ответить
@redmi9power879
@redmi9power879 - 16.08.2022 18:24

Thank you ma'am
I was frustrated from the key function but clear all my douts related to key function

Ответить
@alexandergarzo9415
@alexandergarzo9415 - 15.09.2022 03:53

I like your voice!

Ответить
@JohnOdunayo
@JohnOdunayo - 19.09.2022 03:36

Thanks a lot
helped me with understanding an expression in cs50

Ответить
@deepak_kori
@deepak_kori - 14.12.2022 08:47

your videos are best

Ответить
@samrasoli
@samrasoli - 23.03.2023 10:42

useful, thanks

Ответить
@steephansteephan1360
@steephansteephan1360 - 10.08.2023 20:55

Thank you very much mam, very useful

Ответить
@irvanalhaq7324
@irvanalhaq7324 - 20.09.2023 20:12

Great explanation

Ответить
@Entertainment_world_A1468
@Entertainment_world_A1468 - 11.10.2023 16:32

Mam for dict can't we use def method instead of lambda

Ответить
@diwalibreakdancer7819
@diwalibreakdancer7819 - 01.06.2024 14:40

Hello pls help what is we only want to sort value of index 2:5 and print the rest as it is

Ответить