All Important Python List Functions in One Video - In Hindi

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2024

Комментарии • 101

  • @BABLISINGH-wf8dw
    @BABLISINGH-wf8dw 4 года назад +10

    The best one sir jee.. Love the way u teach sir..

  • @libinalex8261
    @libinalex8261 2 года назад +8

    values in list are of string datatype. To sort according to integers, use key = int inside sort function
    i.e. a.sort(key=int)

  • @anupanand7281
    @anupanand7281 4 года назад +6

    Brilliant way to explain. Thanks a ton for clear concept...

  • @punamkumari6972
    @punamkumari6972 4 года назад +8

    Next level stuff sir...

    • @codeitup
      @codeitup  4 года назад

      Thanks punam. Keep supporting..

  • @sheikhabbasuddin3834
    @sheikhabbasuddin3834 4 года назад +1

    Sir aap simple way me bhut aacha samjhate hai 🙏🙏

    • @codeitup
      @codeitup  4 года назад

      Thanks for the complement dear !🙂

  • @gammerphysco6927
    @gammerphysco6927 3 года назад +3

    Sir numeric number sort ho jayega input me int type ka value denge to sorting ho jayegi abhi is program ne string le raha haii thank you

  • @Motivationalwaley
    @Motivationalwaley 2 года назад +1

    Very useful video sir
    Thanks sir for your best effort..

    • @codeitup
      @codeitup  2 года назад +1

      Thanks & most welcome😊

  • @vasudevyadav2511
    @vasudevyadav2511 2 года назад +2

    List sort() ke like value
    a[]
    x=int(int(Enter the max size))
    For I in range (x):
    Val= int(input("Enter value"))
    a.append()
    a.sot()
    Print(a)
    Output screen
    Max size=5
    Enter value:54
    Enter value:-7
    Enter value:08
    Enter value:3
    Enter value:6
    Answer
    Sorted list
    [54,08,6,3,-7]

  • @not_ishav
    @not_ishav 3 года назад +2

    Sir only because Of you I will clear my exams
    Print("Thankyou *1000000") ;

    • @singhvlogs4425
      @singhvlogs4425 Год назад

      It's not like that ,
      print('Thank you' * 100000000)
      and don't use terminator , yay i understand you want to show your comment in smart way but it must be correct might be normal english or coding thanks

  • @deltamike2427
    @deltamike2427 2 года назад +3

    Thank u very much for your content
    May your channel grow more than u thought.
    Godspeed.

    • @codeitup
      @codeitup  2 года назад +1

      Thanks & most welcome dear😊

  • @mukundkhole1673
    @mukundkhole1673 4 года назад +3

    print("Anand sir is best teacher for python")
    print("Thank you .....")

    • @codeitup
      @codeitup  4 года назад +2

      So nice of you🙂

  • @pranteekdey8636
    @pranteekdey8636 Год назад

    Sir kyunki list kaa ek ek element String k format mein hai. Agar properly sorting karna ho toh pehle Ek ek element ko int mein convert kare.

  • @ajaysinghsharma8199
    @ajaysinghsharma8199 4 года назад

    Sir g yr way of teaching is osm..Tx for explain all functions in 1 vid....My prob is solve now..Tx agn Sir g..

    • @codeitup
      @codeitup  4 года назад

      Most Welcome Ajay !

  • @RajeshKumar-ty3bt
    @RajeshKumar-ty3bt 4 года назад +6

    Awesome stuff..

  • @indianthanos52
    @indianthanos52 2 года назад +1

    Hi sir...I am one of your subscriber ....I have a quiet personal question...😅...... Are you a full time youtuber or you have any programming job also ?? ......

  • @RahulRaj-vx7ov
    @RahulRaj-vx7ov 2 года назад

    Thank u so much sir for bringing this type of helpful video for us.☺️

  • @manishsharma-ri4iq
    @manishsharma-ri4iq Год назад

    sorting k tym list m di gye objects k first character ko sort krta h....esliye 10 ka index list m 1st tha.

  • @ShivSingh-ss1vr
    @ShivSingh-ss1vr 4 года назад +1

    100 Times Thank You 🙏Sir

    • @codeitup
      @codeitup  4 года назад +1

      100 Times Welcome !

  • @rajankumargupta5794
    @rajankumargupta5794 Год назад

    Sir aise hi ek cloud/devops ka full playlist provide kar dete to humare jaise ladko ka bahut help ho jata .🙏🙏

  • @rohitgarg4446
    @rohitgarg4446 9 месяцев назад

    The reason, Sort is not work is "we give the value in string. If we want to sort proper then we have to add int before the input".

  • @archanayadav111
    @archanayadav111 3 года назад +1

    Very nice work sir

    • @codeitup
      @codeitup  3 года назад

      Thanks a lot Archana!

  • @girishpaliwal5718
    @girishpaliwal5718 3 года назад

    Superb sir ji...

  • @riyaagarwal7379
    @riyaagarwal7379 3 года назад +3

    Sir if at 16:57 we want to index of 2 which is appearing twice in the list then what will be the index ? Will it give the index of first occurrence or what?

    • @codeitup
      @codeitup  3 года назад +3

      First occurance

  • @biswajitbiswal4593
    @biswajitbiswal4593 3 года назад +2

    the input entry is not integer,i.e. y=int(input()) then sorting will be right

  • @manishtripathi8737
    @manishtripathi8737 2 года назад +1

    Superab

  • @Ronny______
    @Ronny______ Год назад

    Underrated 💘

  • @AdityaKumar-kn2xc
    @AdityaKumar-kn2xc 2 года назад

    Today i found your channel obviously coz of exams but i must say your explanation is best

    • @codeitup
      @codeitup  2 года назад +1

      Thanks dear, keep learning😊

  • @aka_akanksha
    @aka_akanksha 3 года назад

    Sir thanks alot . 🙏

  • @faizalkhalifa9187
    @faizalkhalifa9187 3 года назад

    Thanks sir g

    • @codeitup
      @codeitup  3 года назад

      Most welcome Faizal!

  • @RishabhJain-pq6ki
    @RishabhJain-pq6ki 2 года назад

    sir there is a runtime error is while sorting was performed if we run the program again it will show the correct result

  • @priyankaagarwal362
    @priyankaagarwal362 3 года назад +1

    Hello Sir, can you plz make a video on using all these functions with string?
    Thank you

    • @codeitup
      @codeitup  3 года назад +1

      Try to create by your own and paste here, I will make changes/corrections if required.

    • @priyankaagarwal362
      @priyankaagarwal362 3 года назад

      @@codeitup okay Sir, thank you

  • @arpitdhote7637
    @arpitdhote7637 2 года назад +1

    completed watching 72 videos

  • @preetikesherwani746
    @preetikesherwani746 3 года назад +2

    You have used string as input
    Binary me 10 ko wo as 1 lelega or 0 ko ignore kar dega to while sorting in place of 10 only ascii value 49 will b counted

    • @anmolagrawal9176
      @anmolagrawal9176 2 года назад

      @preetikesherwani can you please explain🙏🙏

    • @preetikesherwani746
      @preetikesherwani746 2 года назад

      Sorting will b done on the basis of ascii codes, 0-9 hi digits k hote hai (48-57)

  • @rdxvikrant8608
    @rdxvikrant8608 4 года назад +1

    ty

  • @punamkumari6972
    @punamkumari6972 4 года назад +3

    Sir Maine last tak dekhi video par aapke question ka answer mujhe nahi pata.. Pls next video me answer bata dijiega...

    • @codeitup
      @codeitup  4 года назад

      Will Let you know very soon. :)

  • @raunitkumar6819
    @raunitkumar6819 2 года назад

    Use int function to sort

  • @technotutors1970
    @technotutors1970 4 года назад +2

    Because input in form of string liye he n unko int me type cast nhi kiya hai....

  • @joshi_unplugged
    @joshi_unplugged 3 года назад

    because sir you havn't taken val as integer type that's why sorting is not done properly..

  • @coladmin5270
    @coladmin5270 3 года назад +1

    Hi
    Assalamualaikum
    I am from Bangladesh. I would like to do a online python course under you. Though, I am completing your playlists. Do I have any scope.
    Thanks.

    • @codeitup
      @codeitup  3 года назад

      Please mail to codeitupofficial@gmail.com!

  • @Himanshu_Raghu
    @Himanshu_Raghu Год назад

    sir i think you forgot to add sort function video in your youtube python playlist

  • @THEBILLIONAIREKINGSLAYER
    @THEBILLIONAIREKINGSLAYER 3 года назад

    because The Elements in the list are Strings Not int

  • @kom_senapati
    @kom_senapati 2 года назад

    18:42 these are strings not numbers we should have converted the stars to ints

  • @tanveerbibi6474
    @tanveerbibi6474 6 месяцев назад

    16:33 16:33 Jab hum ny list.sort() ka hai list ma jo hum ny value enter ke hai value single quotation (' ') ma lihka thy [ '5','2','10','2','1']
    Is ly jab hum ny is list ko sort ka is ka answer ya aya hai [ '1','10','2','2','5']
    List ko single quotation ma likhana sa hi 10 value before aya hai
    Agr hum is ko without single quotation (' ')ma lihkata hai 10 value after ma atai hai

    • @tanveerbibi6474
      @tanveerbibi6474 6 месяцев назад

      Sir is ka jaldi reply dyna ya answer sai hai or nhi

    • @tanveerbibi6474
      @tanveerbibi6474 6 месяцев назад

      Ma ap ka message ka wait kor gai 😊

  • @bhushanthapa2503
    @bhushanthapa2503 2 года назад

    in sort it comes sorted not sort so the
    line is
    a=(1,5,4,6,2,1)
    print("after sort:", sorted(a)
    output:
    after sort: (1,1,2,4,5,6)

  • @sanjanaagrawal1807
    @sanjanaagrawal1807 3 месяца назад

    Sorting was not done properly because items of list are of string type

  • @meow-rd6op
    @meow-rd6op 3 года назад

    🔥🔥

  • @srijangupta3234
    @srijangupta3234 3 года назад

    Kyuki sare elements string hai int ya double nahi.

  • @vishalchaurasia3584
    @vishalchaurasia3584 3 года назад +1

    I have tried above program in jupyter but getting wrong output plz chk
    a=[]
    x=int(input("enter max size:"))
    for i in range(x):
    val=input("enter number:")
    a.append(val)
    print("original list is:",a)
    print("length of the list:",len(a))
    print("max value in list:",max(a))
    print("max value in list:",min(a))
    Output
    enter max size:5
    enter number:23,34,33,44,21
    original list is: ['23,34,33,44,21']
    length of the list: 1
    max value in list: 23,34,33,44,21
    max value in list: 23,34,33,44,21

    • @vaibhavupadhyay6689
      @vaibhavupadhyay6689 3 года назад

      bcz you have not mention the integer datatype at value before input it should be like this.
      value=int(input('enter the values'))

  • @MrMukulpandey
    @MrMukulpandey 3 года назад

    Maybe 10 jo h vo string h ishiliye

  • @abhaysharma2699
    @abhaysharma2699 3 года назад

    List ko input krte tym int use nhi kra to usne numbers ko as a string liya hoga syd 😅....

  • @MukeshKumar-sw5zm
    @MukeshKumar-sw5zm 3 года назад

    Sir list sort wala nhi hai

  • @kusumgoyat8397
    @kusumgoyat8397 4 года назад

    Kynki humne 10 insert karvaya tha

  • @shardulpuri6860
    @shardulpuri6860 3 года назад

    Sir 10 ko pehle isliye likha kyoki vo '10" ko ek string ki treh le rha hai....kyoki aapne program mein int() ka use nhi kiya hai.....

  • @RAHULGUPTA-sm8sr
    @RAHULGUPTA-sm8sr 4 года назад +1

    Kyuki sir 2 do baar repeat Ho raha hai us list me isiliye usko bad me kiya hoga shayad

  • @akshayjadhav6856
    @akshayjadhav6856 3 года назад

    Bcz sir sort kon int mentioned nahi kiya hai
    Abhi main practice kr rha tha to mujhe oata chala😀

  • @BhagwatiBhatt-kn1nq
    @BhagwatiBhatt-kn1nq 7 месяцев назад

    Sir sort() ko call nhi Kiya only a likha huaa hai

  • @swarnikarout3824
    @swarnikarout3824 4 года назад

    Because..we can add upto 5 max size as we have given input..
    & 10>5
    So not possible

    • @codeitup
      @codeitup  4 года назад

      What was the question exactly??😜

    • @swarnikarout3824
      @swarnikarout3824 4 года назад

      @@codeitup 🙄🙄🙄means

    • @codeitup
      @codeitup  4 года назад

      @@swarnikarout3824 You have replied answer of any question I might have asked in the video. Since the video an old one, I forgot, what question I had asked?

    • @swarnikarout3824
      @swarnikarout3824 4 года назад

      @@codeitup ooooo
      😊😊I got it
      Is this right answer??

    • @aaryanraj8342
      @aaryanraj8342 3 года назад

      @codeitup sir...a.sort..after that we have to print original list is then print a and then print(after sorting)....

  • @anilbarad1856
    @anilbarad1856 3 года назад

    Nit int value its string value so error

  • @21xiiasapnilmodak57
    @21xiiasapnilmodak57 3 года назад

    can uh please share your pdf please

  • @kohinoorteamyogeshchhabra8255
    @kohinoorteamyogeshchhabra8255 3 года назад

    Sir sort wali video ni hai

    • @codeitup
      @codeitup  3 года назад

      Bilkul hai ! Chekc the playlist !

  • @shivangsingh-rr7ou
    @shivangsingh-rr7ou Год назад

    Not an int

  • @souravkumar8332
    @souravkumar8332 4 года назад +1

    sir sort( ) is not in the playlist

    • @codeitup
      @codeitup  4 года назад +1

      Yes, might be I forgot to add.