Difference Between List and Tuple in Python | Python Interview Questions and Answers | List vs Tuple

Difference Between List and Tuple in Python | Python Interview Questions and Answers | List vs Tuple
This video is part of 'difference between programming terms.' and Python Interview Questions and Answers series. In this video, I have explained about the differences between list and tuple. This is most important interview question asked in python .Let's see it's perfect answer.
topics covered:-
1) List vs Tuple in Hindi
2) What is Difference Between List and Tuple
Hello guys, welcome to codeyug to build your computer science
skills.Here,you will learn programming tutorials and computer science tutorials from basics to advanced.
source code :-
Thanks for watching this video
Subscribe codeyug for more programming tutorials.
bit.ly/3h3Bv0c
About this channel:-
This channel provides free tutorials on programming,coding,web development.There are programming tutorials which covers from basics to advanced absolutely in hindi.
Our social links:-
you tube:- bit.ly/3h3Bv0c
instagram:- bit.ly/3mlspQu
gmail :- shantanukejkar@gmail.com
creator:-
-----shantanu kejkar------
#list #tuple #programming #languages #coding #codeyug

Пікірлер: 89

  • @Codeyug
    @Codeyug Жыл бұрын

    We can unpack list also.

  • @barsaprusty4939

    @barsaprusty4939

    Жыл бұрын

    I was just going to scold u black and blue for that🤣

  • @Dabber7

    @Dabber7

    Жыл бұрын

    a,b,c,d=[21,32,93,'hello',5] print(c) a,b,c,d='ABC',21,32,93,'hello',5 print(c) I am facing the same issue for both

  • @barsaprusty4939

    @barsaprusty4939

    Жыл бұрын

    @@Dabber7 thats what happens.. we can unpack list too... not everyone who teaches in youTube is correct all the time...

  • @sagarmasal1242

    @sagarmasal1242

    Жыл бұрын

    yes its correct it is possible to unpack list also. list and tuple both we can do packing and unpacking

  • @luckyrajput2642

    @luckyrajput2642

    4 ай бұрын

    What is meant by pack/unpack ? 😅😅

  • @parthdange755
    @parthdange755 Жыл бұрын

    i dont usually comment on youtube but man what a great teaching every line with example...subscibing you

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thanks and please do share..

  • @shyamkaladlagopal2
    @shyamkaladlagopal2 Жыл бұрын

    well explanation sir....

  • @johnsnow007
    @johnsnow007 Жыл бұрын

    Thank you so much darling 💓

  • @sumantwankhede
    @sumantwankhede Жыл бұрын

    Nice vdo..we can do comprehension of tuple by using its type print(tuple(i*2 for i in range(2)) ) # Tuple (0, 2) print({i:i*2 for i in range(2)} ) # dict {0: 0, 1: 2} l = [2,4,6] print ([i*2 for i in l if i > 1] )# List [4, 8, 12] print({i*2 for i in l if i > 1 }) # set {8, 4, 12}

  • @Codeyug

    @Codeyug

    Жыл бұрын

    But, actually it is generator and not comprehension.. Please check type here...

  • @kailasha1310
    @kailasha13102 жыл бұрын

    Very nice thankyou so much it was realy different from others video

  • @Codeyug

    @Codeyug

    2 жыл бұрын

    Thank you.. Please share with friends..

  • @jobsenclave9991
    @jobsenclave99912 жыл бұрын

    Superb video. Very informative.

  • @Codeyug

    @Codeyug

    2 жыл бұрын

    Thanks... Keep going

  • @riyasaxena5210
    @riyasaxena521010 ай бұрын

    Thanks 👍😊

  • @MahbubAlam-ey7nz
    @MahbubAlam-ey7nz Жыл бұрын

    out of the world explanation

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Keep learning

  • @gaurav6997
    @gaurav6997 Жыл бұрын

    Your explanation is amazing

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thanks and check playlists please

  • @williamjayaraj2244
    @williamjayaraj2244 Жыл бұрын

    Good explanation. Thanks.

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Keep going.. 👍

  • @ravijeetsingh5135
    @ravijeetsingh5135 Жыл бұрын

    Nice

  • @Rahul_Patil_11
    @Rahul_Patil_11 Жыл бұрын

    Kaash aapkee jaisa sir hamare college m hota🥹🙂

  • @vintagex4350
    @vintagex4350 Жыл бұрын

    Your teaching techniques is too good

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thanks a lot

  • @shubhangimahajan5089
    @shubhangimahajan5089 Жыл бұрын

    Very clear explanation Sir👍

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thanks

  • @sudip_pandit
    @sudip_pandit Жыл бұрын

    thank you sir

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Check playlists..

  • @divyrajverma8286
    @divyrajverma82869 ай бұрын

    हर हर महादेव जय माँ भवानी जय श्रीराम जय माँ सीता जय हनुमानजी 🙏🙏🙏🙏🙏❤❤❤❤❤❤❤❤🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩

  • @pareshranjanrout9439
    @pareshranjanrout94396 ай бұрын

    ❤ Thank you Bhai

  • @Codeyug

    @Codeyug

    5 ай бұрын

    Please check playlist section of this channel

  • @shubhpatil18
    @shubhpatil18 Жыл бұрын

    Nace presentation brother appreciate

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Keep watching and keep learning

  • @VishalDubey-oi3rq
    @VishalDubey-oi3rq Жыл бұрын

    nyc but we can unpack list also.. try it guys as same as tuple

  • @gautamagarwal9761
    @gautamagarwal9761 Жыл бұрын

    Best video 🙌

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thank you and keep going..

  • @p.krajput0601
    @p.krajput0601 Жыл бұрын

    Great 👍❤️

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Keep going bro..

  • @AyeshaKhan-sj5eb
    @AyeshaKhan-sj5eb Жыл бұрын

    It is very good👍

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thank you and keep learning

  • @earth_1943
    @earth_1943 Жыл бұрын

    We can unpack list like tuple I am able to do it .

  • @InfotechSuraj
    @InfotechSuraj2 жыл бұрын

    Amazing🙏

  • @Codeyug

    @Codeyug

    2 жыл бұрын

    Thank you so much.. Keep learning from my channel. There are number of playlists

  • @vintagex4350
    @vintagex4350 Жыл бұрын

    Osm brother

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thanks 🤗

  • @gajananchapole1607
    @gajananchapole1607 Жыл бұрын

    Very nice

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thanks...you can learn python from this channel

  • @fabeezsm7056
    @fabeezsm70566 ай бұрын

    we can unpack list and tuples . when i tried for output both came without error. i was wondering what am i wrong or my computer is

  • @ramuyanamala1253
    @ramuyanamala12532 күн бұрын

    packin and unpacking is supporting list

  • @samrat.02
    @samrat.02 Жыл бұрын

    Good expl

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thanks

  • @samrat.02

    @samrat.02

    Жыл бұрын

    Hi bro if vs for loops plz 🙏 explan

  • @KartikPandeyVlogs
    @KartikPandeyVlogs2 жыл бұрын

    I was thinking packing n unpacking is able in list

  • @Codeyug

    @Codeyug

    2 жыл бұрын

    Now, it's cleared... Right?

  • @KartikPandeyVlogs

    @KartikPandeyVlogs

    2 жыл бұрын

    @@Codeyug yes and this ques was in my exam yesterday thanks ❤

  • @nileshsinha957
    @nileshsinha9576 ай бұрын

    unpacking can be happen in list

  • @kshitijpatil4133
    @kshitijpatil41337 ай бұрын

    sir, which software are you using for code in this video

  • @Codeyug

    @Codeyug

    7 ай бұрын

    Vscode

  • @shrikantgedam2900
    @shrikantgedam29004 ай бұрын

    i tried unpacking with list as you said and it works.... how it is possible j, k, l, m, = [1, 5.4, 'abc', 2+3j] print(j) print(k) print(l) print(m)

  • @Codeyug

    @Codeyug

    4 ай бұрын

    Working is changed into new version. I have also commented in the same video and pinned it

  • @skchannel2088
    @skchannel20886 ай бұрын

    Modification kelye list chahea ya tuple?

  • @Codeyug

    @Codeyug

    6 ай бұрын

    List

  • @engineeringlife5391
    @engineeringlife5391 Жыл бұрын

    But Maine list ke liye try kiya . Replit(online) pe . Unpacking ho raha hai . Pls help

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Unpack hota hai... It depends on version I guess.. Comments check kro.

  • @Chinmoy348
    @Chinmoy3482 жыл бұрын

    Nice video bro

  • @Codeyug

    @Codeyug

    2 жыл бұрын

    Thank you.. If Anything required, text me..

  • @Chinmoy348

    @Chinmoy348

    2 жыл бұрын

    @@Codeyug sure bro

  • @a.agaming097
    @a.agaming097 Жыл бұрын

    At 6:53 you didn't provide parenthesis for tuple, then how can you define that tuple can be unpacked. I understand that the output will be the same but I am just trying to indicate your mistake.

  • @Codeyug

    @Codeyug

    Жыл бұрын

    var1, var2, var3 = 10,20,30 is unpacking of tuple. I don't think there is a mistake.

  • @samrat.02
    @samrat.02 Жыл бұрын

    Hi bro oops in python explan 😊😊plz

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Full playlist hai bro..

  • @samrat.02

    @samrat.02

    Жыл бұрын

    Thank you bro

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Mila kya?

  • @samrat.02

    @samrat.02

    Жыл бұрын

    @@Codeyug yes bro mil gaya thank you bro

  • @Codeyug

    @Codeyug

    Жыл бұрын

    @@samrat.02 'oop using python codeyug' esse bhi mil jayega

  • @yashanksaini3694
    @yashanksaini36942 ай бұрын

    L = ['hello' , 23 , 30 , 'ram'] a,b,c,d = L print (b) unpacking ho rhi h

  • @Codeyug

    @Codeyug

    2 ай бұрын

    Yess... Please check my comment below the video

  • @johnmartin9329
    @johnmartin9329 Жыл бұрын

    aa,ba,ca,da=[1,5,3,4] print(aa,ba,ca,da) a,b,c,d=(1,2,4,5) print(a,b,c,d) both are giving same result in python 3.0 why

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Sorry, we can unpack tuple.. I guess, I did mistake.

  • @KrunalDurne
    @KrunalDurneКүн бұрын

    U were wrong coz Unpacking is possible with list

  • @Mykiti271
    @Mykiti271 Жыл бұрын

    Bro plzz muj se insta pr rbta kren ya whatsapp prr muje python K bary mein ap se jan kari leni ha

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Please ask here

  • @prabinasunani4021
    @prabinasunani4021 Жыл бұрын

    Thank you sir

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Welcome

  • @shaikmuheeb5526
    @shaikmuheeb5526 Жыл бұрын

    Nice

  • @Codeyug

    @Codeyug

    Жыл бұрын

    Thanks