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

preview_player
Показать описание
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.
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:-
creator:-
------shantanu kejkar-------
#list #tuple #programming #languages #coding #codeyug
Рекомендации по теме
Комментарии
Автор

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

parthdange
Автор

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}

sumantwankhede
Автор

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

kailasha
Автор

Kaash aapkee jaisa sir hamare college m hota🥹🙂

Rahul_Patil_
Автор

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

divyrajverma
Автор

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

VishalDubey-oirq
Автор

packin and unpacking is supporting list

ramuyanamala
Автор

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

earth_
Автор

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)

shrikantgedam
Автор

I was thinking packing n unpacking is able in list

KartikPandeyVlogs
Автор

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

fabeezsm
Автор

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

johnmartin
Автор

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

kshitijpatil
Автор

Modification kelye list chahea ya tuple?

skchannel
Автор

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

yashanksaini
Автор

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.

a.agaming
Автор

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

engineeringlife