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