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
We can unpack list also.
@barsaprusty4939
Жыл бұрын
I was just going to scold u black and blue for that🤣
@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
Жыл бұрын
@@Dabber7 thats what happens.. we can unpack list too... not everyone who teaches in youTube is correct all the time...
@sagarmasal1242
Жыл бұрын
yes its correct it is possible to unpack list also. list and tuple both we can do packing and unpacking
@luckyrajput2642
4 ай бұрын
What is meant by pack/unpack ? 😅😅
i dont usually comment on youtube but man what a great teaching every line with example...subscibing you
@Codeyug
Жыл бұрын
Thanks and please do share..
well explanation sir....
Thank you so much darling 💓
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
Жыл бұрын
But, actually it is generator and not comprehension.. Please check type here...
Very nice thankyou so much it was realy different from others video
@Codeyug
2 жыл бұрын
Thank you.. Please share with friends..
Superb video. Very informative.
@Codeyug
2 жыл бұрын
Thanks... Keep going
Thanks 👍😊
out of the world explanation
@Codeyug
Жыл бұрын
Keep learning
Your explanation is amazing
@Codeyug
Жыл бұрын
Thanks and check playlists please
Good explanation. Thanks.
@Codeyug
Жыл бұрын
Keep going.. 👍
Nice
Kaash aapkee jaisa sir hamare college m hota🥹🙂
Your teaching techniques is too good
@Codeyug
Жыл бұрын
Thanks a lot
Very clear explanation Sir👍
@Codeyug
Жыл бұрын
Thanks
thank you sir
@Codeyug
Жыл бұрын
Check playlists..
हर हर महादेव जय माँ भवानी जय श्रीराम जय माँ सीता जय हनुमानजी 🙏🙏🙏🙏🙏❤❤❤❤❤❤❤❤🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩
❤ Thank you Bhai
@Codeyug
5 ай бұрын
Please check playlist section of this channel
Nace presentation brother appreciate
@Codeyug
Жыл бұрын
Keep watching and keep learning
nyc but we can unpack list also.. try it guys as same as tuple
Best video 🙌
@Codeyug
Жыл бұрын
Thank you and keep going..
Great 👍❤️
@Codeyug
Жыл бұрын
Keep going bro..
It is very good👍
@Codeyug
Жыл бұрын
Thank you and keep learning
We can unpack list like tuple I am able to do it .
Amazing🙏
@Codeyug
2 жыл бұрын
Thank you so much.. Keep learning from my channel. There are number of playlists
Osm brother
@Codeyug
Жыл бұрын
Thanks 🤗
Very nice
@Codeyug
Жыл бұрын
Thanks...you can learn python from this channel
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
packin and unpacking is supporting list
Good expl
@Codeyug
Жыл бұрын
Thanks
@samrat.02
Жыл бұрын
Hi bro if vs for loops plz 🙏 explan
I was thinking packing n unpacking is able in list
@Codeyug
2 жыл бұрын
Now, it's cleared... Right?
@KartikPandeyVlogs
2 жыл бұрын
@@Codeyug yes and this ques was in my exam yesterday thanks ❤
unpacking can be happen in list
sir, which software are you using for code in this video
@Codeyug
7 ай бұрын
Vscode
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
4 ай бұрын
Working is changed into new version. I have also commented in the same video and pinned it
Modification kelye list chahea ya tuple?
@Codeyug
6 ай бұрын
List
But Maine list ke liye try kiya . Replit(online) pe . Unpacking ho raha hai . Pls help
@Codeyug
Жыл бұрын
Unpack hota hai... It depends on version I guess.. Comments check kro.
Nice video bro
@Codeyug
2 жыл бұрын
Thank you.. If Anything required, text me..
@Chinmoy348
2 жыл бұрын
@@Codeyug sure bro
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
Жыл бұрын
var1, var2, var3 = 10,20,30 is unpacking of tuple. I don't think there is a mistake.
Hi bro oops in python explan 😊😊plz
@Codeyug
Жыл бұрын
Full playlist hai bro..
@samrat.02
Жыл бұрын
Thank you bro
@Codeyug
Жыл бұрын
Mila kya?
@samrat.02
Жыл бұрын
@@Codeyug yes bro mil gaya thank you bro
@Codeyug
Жыл бұрын
@@samrat.02 'oop using python codeyug' esse bhi mil jayega
L = ['hello' , 23 , 30 , 'ram'] a,b,c,d = L print (b) unpacking ho rhi h
@Codeyug
2 ай бұрын
Yess... Please check my comment below the video
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
Жыл бұрын
Sorry, we can unpack tuple.. I guess, I did mistake.
U were wrong coz Unpacking is possible with list
Bro plzz muj se insta pr rbta kren ya whatsapp prr muje python K bary mein ap se jan kari leni ha
@Codeyug
Жыл бұрын
Please ask here
Thank you sir
@Codeyug
Жыл бұрын
Welcome
Nice
@Codeyug
Жыл бұрын
Thanks