Lecture 3 : List & Tuple in Python | Python Full Course

preview_player
Показать описание
This lecture was made with a lot of love❤️

0:00 - Introduction
0:51 - Lists in Python
6:28 - Difference between Strings and Lists in Python
9:05 - List Slicing
11:55 - List Methods
22:59 - tuples in Python
23:38 - Difference between Tuples and Lists in Python
27:43 - Tuple Slicing
28:09 - Tuple Method
29:35 - Let's Practice Question 1
34:05 - Let's Practice Question 2
39:47 - Let's Practice Question 3
Рекомендации по теме
Комментарии
Автор

nice way to learn python and the way you explain is very easy to understand. Thank you .

KamaljeetDET
Автор

00:01 Lists and tuples in Python are built-in data types for storing set of values.
02:41 Lists in Python can store multiple values and can be accessed by index
06:49 Lists in Python allow mutation while strings do not.
09:01 Slicing in lists allows obtaining a sublist based on start and end indexes.
13:01 List methods in Python
15:08 The sort method in Python does not return anything, it arranges the list in place.
19:17 List insert method in Python
21:15 List method operations like pop, copy, and count
25:33 Creating and printing single value tuples in Python
27:33 Tuples in Python can be sliced and have methods like index and count.
31:12 Storing and appending values in a list in Python
33:40 Checking for Palindrome in a List
37:27 Understanding Palindromes in Python
39:25 Understanding palindromes and counting students' grades in tuples.

premsharma
Автор

I am mechanical Engineer... But still i am leaning this from you...
Because of you..

sagarbavliya
Автор

I didn't know how to write a python code but i am watching your video so i completely understand and make program thankyou so much and Great full video

bhumikakesharwani-iiii
Автор

m1=input("Enter 1st Movie name: ")
m2=input("Enter 2nd movie name: ")
m3=input("Enter 3rd movie name: ")
list=[m1, m2, m3]
print(list)

neonblade
Автор

Ma'am I want to ask that in movie question we can also use this too right?
a=input("Enter the 1st movie name: ")
b=input("Enter the 2nd movie name: ")
c=input("Enter the 3rd movie name: ")
l=[a, b, c]
print(l)
Rather than creating an empty list and then appending values in them

mspider
Автор

Thank you madamji.. I was waiting for this chapter.. once again thank you..& also wish to bring your notice, I didn't find notes on this lecture.. Earlier lectures notes it shows at description link.
Thank you ❤

Adityasshenoy-rwox
Автор

THANKS DIDI ❤
IT HELPS ME A LOT 🙏
#GULABI DIL
#GULABI DIL
#GULABI DIL 🙂

ACQUAINTANCE-UNKNOWN
Автор

for more effecient code in less number of lines for that 3 movies sorting question : BELOW IS THE CODE

name1 = str(input("Enter first movie name: "))
name2 = str(input("Enter second movie name: "))
name3 = str(input("Enter third movie name: "))

movie_list = [name1, name2, name3]
print(movie_list)

OUTPUT COMES THE SAME

adisvlogs
Автор

Shradha Didi, append karna zaroori tha kya? maine toh aise kiya

mov1 = input("Enter 1st movie:")
mov2 = input("Enter 2nd movie:")
mov3 = input("Enter 3rd movie:")

movies = [mov1, mov2, mov3]

print(movies)

fcpitdw
Автор

list1=["abc", 10, 10, "abc"]
list2=list1.copy()
list2.reverse()
if(list1==list2):
print("Given list contain palindrome")
else:
print("Given list contain palindrome")

dipakkandel
Автор

Thnx didi
Your way of teaching is excellent 👌👌👌

salonikasera
Автор

Can tuple store multiple types of data like lists ??

MuhammadMatloobAhmed
Автор

Didi Maine ye code crame Kiya tha palindrome ka😂😂 kisi ne aisa copy ka method nahi bataya tha aj clear hua TQ a lot ❤❤❤❤❤

babamusic
Автор

movie1=input("")
movie2=input("")
movie3=input("")
movies=[movie1, movie2, movie3]
print(movies)

dipakkandel
Автор

Didi mere se first wala question ho gya tha 😊😊

SwaroopSoni-vmys
Автор

list = [1, 2, 3, 2, 1]
if((list[0:1] == list[len(list)-1:len(list)]) and (list[1:2] == list[len(list)-2: len(list)-1]) ):
print("yes it is palindrome number")
else:
print("no it is not")

JatinJangid-xy
Автор

list=[input("Enter your favorite movie name:")]
print(list)
# -> this code is same output in your questions

jqjyqip
Автор

thanks for sharing this kind of quality contents on internet for free!!! lots of love from Bangladesh.

vasykloepexergasia
Автор

Mam, for the question 1 is it also ok to write a program directly like this(since you already mentioned for only 3 movies) :
m1 = input("Movie 1: ")
m2 = input("Movie 2: ")
m3 = input("Movie 3: ")

movie_list = [m1, m2, m3]
print(movie_list)

divyamagarwal
join shbcf.ru