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

  Рет қаралды 929,120

Shradha Khapra

Shradha Khapra

Күн бұрын

Пікірлер: 878
@Srmotivative
@Srmotivative 10 күн бұрын
Kon kon 2024 ke last month December main dekh raha hai
@FRIDAY23-editz
@FRIDAY23-editz 6 күн бұрын
😶🤚
@MrPred-f9q
@MrPred-f9q 6 күн бұрын
😂
@nobitagaming817
@nobitagaming817 5 күн бұрын
🖐
@SoumodipNaskar09
@SoumodipNaskar09 2 күн бұрын
Mai
@FRIDAY23-editz
@FRIDAY23-editz 2 күн бұрын
@SoumodipNaskar09 Bro Where's your motherland?
@pranav_c17
@pranav_c17 10 ай бұрын
Best channel for all coders 🎉❤
@mehendiparveen2313
@mehendiparveen2313 4 ай бұрын
Right
@bhumikakesharwani-ii4ii
@bhumikakesharwani-ii4ii 8 ай бұрын
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
@Anpadh_engineer486
@Anpadh_engineer486 3 ай бұрын
use vs code To write code
@gchethan9472
@gchethan9472 2 ай бұрын
Hello all This one the best python basic lecture you will ever get, In the entire video she never asked for subscribe or like. Let’s encourage her to do more courses like this and help crores of students and learner’s. Keep up the good work Shraddha and keep on helping people.
@leptoketrin
@leptoketrin 10 ай бұрын
BCA students are here ❤❤❤
@Aryan_Singh_coder
@Aryan_Singh_coder 10 ай бұрын
Bhai BCA karke bhi coding kar sakte hai I am in 11 th
@KakashiHatake-ux1jq
@KakashiHatake-ux1jq 10 ай бұрын
No btech CSE students
@KakashiHatake-ux1jq
@KakashiHatake-ux1jq 10 ай бұрын
@@Aryan_Singh_coder bhai bca mai coding syllabus me hi rheti hai
@KakashiHatake-ux1jq
@KakashiHatake-ux1jq 10 ай бұрын
@@Aryan_Singh_codertry kar ki koi ache college me CSE mile bca ko backup me rakh
@Aryan_Singh_coder
@Aryan_Singh_coder 10 ай бұрын
@@KakashiHatake-ux1jq thanks bro
@Mr_Andy_Gamer
@Mr_Andy_Gamer 4 ай бұрын
30:42 WAP 3 favourite movies and store then in a list a = input("enter a 1st movie:") b = input("enter a 2nd movie:") c = input("enter a 3rd movie:") Favourite_movie = [a,b,c] Print(Favourite_movie)
@fahadsiddique1201
@fahadsiddique1201 Күн бұрын
Favourite_movie = [] a = input("enter a 1st movie:") Favourite_movie.append(a) b = input("enter a 2nd movie:") Favourite_movie.append(b) c = input("enter a 3rd movie:") Favourite_movie.append(c) print(Favourite_movie) print(type(Favourite_movie))
@premsharma2595
@premsharma2595 5 ай бұрын
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.
@sunehabhongle8440
@sunehabhongle8440 5 ай бұрын
Thanks dude!!
@_kaustubh_06
@_kaustubh_06 4 ай бұрын
Already description me mentioned hn.
@paraskumarkoyarh6173
@paraskumarkoyarh6173 4 ай бұрын
Concepts directly delivered with no time waste, most helpful and learning video I'm non cs guy and now i feel i know something in this field, thank you didi, god bless you 😊
@vishal1980able
@vishal1980able 9 ай бұрын
ma'am i did the 1st question without append😅 my code was : movie = input("enter your 1st favourite movie") movie2 = input("enter your 2nd favourite movie") movie3 = input("enter your 3rd favourite movie") print ("the list of your favourite movies is : " , [movie , movie2 , movie3]) and it was fully workingg
@its_shagufta-codes
@its_shagufta-codes 8 ай бұрын
i did the same
@vishal1980able
@vishal1980able 8 ай бұрын
@@its_shagufta-codes yup bro and this one is easy
@suneelchaurasiya6176
@suneelchaurasiya6176 Ай бұрын
I also did same
@gamer-gy3rv
@gamer-gy3rv Ай бұрын
Same bro😂
@ICEDPENGUJN
@ICEDPENGUJN Ай бұрын
check the type aik bar bhai
@sakshamgupta-jj4go
@sakshamgupta-jj4go 2 ай бұрын
32:33 We can also do like this . Movie1=input("Enter the first movie : ") Movie2=input("Enter your Second Movie : ") Movie3=input("Enter your Third Movie : ") list=[Movie1,Movie2,Movie3] print(list) Output = Same aaya . Am i right Shradha Didi. Why we use append function we have to store it in List. Not in a Sorting way
@suhaibshameem4900
@suhaibshameem4900 Ай бұрын
same i did, i just use input, and then list [x, y, z] and print list 😂
@D6Ell
@D6Ell 3 ай бұрын
Anyone from September 2024
@Rajput_harsh_0009
@Rajput_harsh_0009 2 ай бұрын
Yes
@renukaverma7640
@renukaverma7640 2 ай бұрын
Me
@arohi_303
@arohi_303 2 ай бұрын
yss
@Rajput_harsh_0009
@Rajput_harsh_0009 2 ай бұрын
@@arohi_303 tum python seekh rhi ho?
@arohi_303
@arohi_303 2 ай бұрын
@@Rajput_harsh_0009 ofc
@mspider03
@mspider03 10 ай бұрын
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
@JATAYUBABA-r2r
@JATAYUBABA-r2r 8 ай бұрын
mene bhi same ase hi kiya hai
@Rosa-uu2sy
@Rosa-uu2sy 8 ай бұрын
You can do l = [input "first movie name", input"second movie name" .....] Print(l)
@rahulpandey4975
@rahulpandey4975 7 ай бұрын
This actually helped me, I was stuck on a question from last 2 days.
@craftingwithriya.
@craftingwithriya. 7 ай бұрын
yes you can. either ways it does the same job :)
@mylife-sl6dz
@mylife-sl6dz 7 ай бұрын
​Vahi soch raha hu bencho vo interviewer bhi sar bhod dega itna locha dekkhe 😂​@@craftingwithriya.
@AJosl360
@AJosl360 2 ай бұрын
summary :-----> 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. Thankyou everybody
@nishaprajapati6103
@nishaprajapati6103 3 ай бұрын
Thanks dii aapne mujhe kitna kuch sikhaya bilkul easy language ke saath
@neonblade209
@neonblade209 8 ай бұрын
m1=input("Enter 1st Movie name: ") m2=input("Enter 2nd movie name: ") m3=input("Enter 3rd movie name: ") list=[m1,m2,m3] print(list)
@surabhisbiology4149
@surabhisbiology4149 4 ай бұрын
i did the same thing
@Peaceinmindchannel
@Peaceinmindchannel 4 ай бұрын
i did the same thing too
@priyakushwaaha
@priyakushwaaha 2 ай бұрын
Same❤😂
@lucky_0590
@lucky_0590 Ай бұрын
Same I did 😅😅
@fahadsiddique1201
@fahadsiddique1201 Күн бұрын
Concept is crystal clear 🎉 Thank you mam 🙏🏻
@SunnyChaudhary-y4f
@SunnyChaudhary-y4f 22 күн бұрын
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
@abial123hehe
@abial123hehe 16 күн бұрын
41:00 tup=("C","D","A","A","B","B","A") print(tup.count("A")) lisst=list(tup[:]) lisst.sort() print(lisst)
@mansvimagar13
@mansvimagar13 3 ай бұрын
YOU Should Start From Basics Like What are Functions, classess, And Objects . Because After Certain Time It Becomes Heavy To Understand. For Beginners
@JKaushik-ix2yn
@JKaushik-ix2yn 3 ай бұрын
Bhai Pehale ja ke" introduction to python" Dekh ke aa
@divyanshugoyal663
@divyanshugoyal663 10 ай бұрын
38:37 another code list1= [1,2,1] copy1= list1.copy() copy1.reverse() print(copy1)
@KamaljeetDET
@KamaljeetDET 6 ай бұрын
nice way to learn python and the way you explain is very easy to understand. Thank you .
@dhruvaldalwadi5985
@dhruvaldalwadi5985 4 ай бұрын
list1 = [1,2,3,2,1] list2 = [1,"abc","abc",1] copy_list2 = list2.copy() copy_list2.reverse() if(copy_list2==list2): print("Palindrome") else: print("non pallindrom") 39:00 and change the list numbers from 1 to 2 , you can get rest of the idea
@Aashish_Narayan
@Aashish_Narayan 3 ай бұрын
29:35 print("enter your three fevorite:-") a=str(input("movie 1")) b=str(input("movie 2")) c=str(input("movie 3")) list=[a, b, c] print("your three fevorite movies are :", list)
@ShobhitSrivastava-md6ip
@ShobhitSrivastava-md6ip 3 ай бұрын
32:39 ma"am can we also do this question by this method: a=input("Enter your 1st favourite movie :" ) b=input("Enter your 2nd favourite movie :" ) c=input("Enter your 3rd favourite movie :" ) list=(a,b,c) print(list)
@varickvision_12
@varickvision_12 Ай бұрын
yes
@Adityasshenoy-rw4ox
@Adityasshenoy-rw4ox 10 ай бұрын
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 ❤
@ComicCraze54
@ComicCraze54 10 ай бұрын
Exactly
@learnwithnagma
@learnwithnagma 10 ай бұрын
It's there only : drive.google.com/drive/folders/1LahwPSc6f9nkxBiRrz6LFUzkrg-Kzvov?usp=sharing
@Adityasshenoy-rw4ox
@Adityasshenoy-rw4ox 10 ай бұрын
Thank you Madamji.. Found notes ❤
@Crazzyyy.06
@Crazzyyy.06 8 ай бұрын
32:40 ma'am mene just movie variable bana ke usi me saare movies daalke fir usko print me daal diya and the result was the same but with less effort and line (took only 2 lines)
@shailuutalks
@shailuutalks 7 ай бұрын
yes, same to you 😁
@mylife-sl6dz
@mylife-sl6dz 7 ай бұрын
​@@shailuutalksdidiko Microsoft mai kisne job Diya be 😂.just kidding
@SabarnaBandyopadhyay
@SabarnaBandyopadhyay 2 ай бұрын
at 32:00 min , there is a shorter way to write the code . So first we create 3 variables , use the input function to store the name of the movies in the variables. After that we can create the list and write the name of elements within the square bracket separated by a comma like the one given : --- a = str(input("please enter the name of a movie ")) b = str(input("please enter the name of a movie ")) c = str(input("please enter the name of a movie ")) movies = [a,b,c] print(movies) ................... this is a much sorter code and we don't need to append anything .IF THERE ARE ANY PROBLEMS WITH THE CODE PLEASE INFORM
@pateljenies3785
@pateljenies3785 2 ай бұрын
In practise que 1 , i have answerd this code : movie1 = input("Enter Fav Movie1:") movie2 = input("Enter Fav Movie2:") movie3 = input("Enter Fav Movie3:") list=[movie1,movie2,movie3] print(list) print(type(list)) Tell me is it right ?
@enfield_kiddo_16
@enfield_kiddo_16 10 ай бұрын
I think without using copy method we can check palindrome i. e by using only reverse( ). list=['d', 'a', 'd'] copylist=list.reverse( ) copylist.reverse ( ) if(list == copylist): print("palindrome") else: print ("not palindrome")
@Nithishwar7
@Nithishwar7 10 ай бұрын
copylist.list.copy() copylist.reverse()
@MahfuzurRahman-li4pr
@MahfuzurRahman-li4pr 7 ай бұрын
list=["d",'a','d'] if list==list[::-1]: print('palindrom') else: print('not palindrom')
@tigertigerfoods
@tigertigerfoods Ай бұрын
this not working
@HafsaTahir-o1i
@HafsaTahir-o1i 24 күн бұрын
2nd practice question List1 = [ 1,2,3,2,1] List2 = [1,2,3,2,1] List2.reverse() If( list1 == list2): print(" list is palindrome") else : print(" list is not palindrome") Can we do with this method
@Mahesh_Jaat_95
@Mahesh_Jaat_95 9 күн бұрын
1. tup = (2, 1, 3, 1,) 2. Print(tup) Aswer = (2,1,3,1
@surakshaRajput-ys2dw
@surakshaRajput-ys2dw 5 ай бұрын
Who is watching in July
@suniltanwer5524
@suniltanwer5524 4 ай бұрын
Hum
@YASHRAJGAMINGOP
@YASHRAJGAMINGOP 4 ай бұрын
Me....
@preetipurohit5842
@preetipurohit5842 4 ай бұрын
In the end of July 😂
@AnkitaMahajan-u9r
@AnkitaMahajan-u9r 4 ай бұрын
Kaunase clg and yr me ho..?
@wildyoutuber2615
@wildyoutuber2615 4 ай бұрын
here from aug
@stayspiritual9800
@stayspiritual9800 2 ай бұрын
VERY HELPFUL VIDEO SHRADDHA MA'AM , THANKS A LOT
@ashu10023
@ashu10023 2 ай бұрын
😢😂😂😂😅😅😅
@ashu10023
@ashu10023 2 ай бұрын
Hjk😅
@stayspiritual9800
@stayspiritual9800 2 ай бұрын
@@ashu10023 you'll be a great youtuber bro
@Be_Happy-ov8vz
@Be_Happy-ov8vz 2 ай бұрын
Any school student is here 😅
@hhvv1756
@hhvv1756 5 күн бұрын
Yes
@vikkyjoker1610
@vikkyjoker1610 Күн бұрын
If ur in school? Why are u learning python 😅?
@aadi_xy_z__-df1kv
@aadi_xy_z__-df1kv 9 ай бұрын
34:00 Didi , we can write . Movie_1=input("movie_1 name") Movie_2=input("movie_2 name") Movie_3=input("movie_3 name") List=[Movie_1,Movie_2,Movie_3] print(List) #output _is same as
@muskanalisha1636
@muskanalisha1636 7 ай бұрын
I do same as u
@a89481
@a89481 3 ай бұрын
31:41 Movies = [str(input("enter 1st movie: ")), str(input("enter 2nd movie: ")), str(input("enter 3rd movie: "))] print(movies) That's way was better or not for production level. I asked this question because of all inputs are stored in single variable that was good or not
@tukannath2659
@tukannath2659 4 ай бұрын
Thanks to my teacher that he introduced your channel to me. You are the best explainer
@johnny19100
@johnny19100 20 күн бұрын
For the very last question, I thought that we need to store the tuple into a list and then sort it. So, using Google I found out how to convert a tuple into a list and then sorted it. It was actually more interesting than the actual straight forward question.
@asthathakur5991
@asthathakur5991 Ай бұрын
November 2024?
@iamsatyamkarn2798
@iamsatyamkarn2798 17 күн бұрын
Present 😮‍💨😮‍💨
@truptisuthar9770
@truptisuthar9770 15 күн бұрын
Kal exam hai 😂
@sagar14bavliya
@sagar14bavliya 8 ай бұрын
I am mechanical Engineer... But still i am leaning this from you... Because of you..
@sreevennelab8965
@sreevennelab8965 5 ай бұрын
for the first practice question: a = (input("what is your first favorite movie? ")) b = (input("what is your second favorite movie? ")) c = (input("what is your third favorite movie? ")) list = [a, b, c] print(list) is this correct?
@NishaKumari-sd3ms
@NishaKumari-sd3ms 5 ай бұрын
Perfect✨
@playstation07
@playstation07 6 күн бұрын
31:40 this is easy way to solve that code movi1=input() movi2=input() movi3=input() movies=[movi1,movi2,movi3] print(movies)
@muhammadfahadikram1
@muhammadfahadikram1 2 ай бұрын
Hi... I couldn't understand the importance of using append function at 32:33 where as we could have completed exercise without using append as below: Movie1=(input("Your Top most favourite movie?)")) Movie2=(input("Your 2nd most favourite movie?)")) Movie3=(input("Your 3rd most favourite movie?)")) List=[Movie1, Movie2, Movie3] print(List)
@babamusic8538
@babamusic8538 10 ай бұрын
Didi Maine ye code crame Kiya tha palindrome ka😂😂 kisi ne aisa copy ka method nahi bataya tha aj clear hua TQ a lot ❤❤❤❤❤
@free_guy_iit
@free_guy_iit 3 ай бұрын
😅I am pursuing a minor degree in AI at IIT Ropar, however I discovered that you educate better than our facilities.
@paramjjethwa8734
@paramjjethwa8734 Ай бұрын
BEST SERIES FOR PYTHON ON KZbin
@parthakapri4285
@parthakapri4285 10 ай бұрын
Hi, the third lecture PDF is not available on Google Drive. So, please look into this matter.
@aaryatripathi5412
@aaryatripathi5412 9 ай бұрын
Now it's uploaded
@dipakkandel2934
@dipakkandel2934 6 ай бұрын
movie1=input("") movie2=input("") movie3=input("") movies=[movie1,movie2,movie3] print(movies)
@IAMYOURDADX
@IAMYOURDADX 5 ай бұрын
@SyedImranShah-gi8cv print ("abc")
@mirajraha
@mirajraha Ай бұрын
What happens when we pass integer variables inside power function. Example: pow(a, b) Where a=int And b=int And how the pow function actually works, what is the difference if we use ** instead of pow.
@lavanyaraj4074
@lavanyaraj4074 2 күн бұрын
Q.1) Favt_Mve1 = input("Enter your first favourite movie?" ) Favt_Mve2 = input("Enter your second favourite movie?" ) Favt_Mve3 = input("Enter your third favourite movie?" ) List=([Favt_Mve1+ "," +Favt_Mve2+ "," + Favt_Mve3]) print(List) print(type(List))
@yuvrajsinhsolanki0013
@yuvrajsinhsolanki0013 Ай бұрын
Thank you so much madam❤
@ChandraParkesh-dc9xp
@ChandraParkesh-dc9xp 6 ай бұрын
Best channel for all codes
@ChandraParkesh-dc9xp
@ChandraParkesh-dc9xp 6 ай бұрын
Nice
@Vidya-R-S2
@Vidya-R-S2 3 ай бұрын
Appreciate your efforts to record such long videos and these are really useful for beginners!
@ghairatbaheer1991
@ghairatbaheer1991 10 ай бұрын
Thank You Shradha Didi! A lot of respect from Pakistan. Your teaching method is very good. I'm enjoying your every class and I'm waiting for the upcoming classes.
@CodeBook-fc9fg
@CodeBook-fc9fg 8 ай бұрын
tere makima
@CodeBook-fc9fg
@CodeBook-fc9fg 8 ай бұрын
what the
@CodeBook-fc9fg
@CodeBook-fc9fg 8 ай бұрын
fo
@granteddearning
@granteddearning 10 ай бұрын
This is my answer on WAP1 movie1=input("enter your first fav movie:--") movie2=input("enter your second fav movie:--") movie3=input("enter your third fav movie:--") list=[movie1,movie2] list.append(movie3) print(list)
@sejalchourasia4298
@sejalchourasia4298 6 ай бұрын
I did the same way , is it correct?
@Ayaan_khan21
@Ayaan_khan21 10 ай бұрын
str.replace() function in string replace old value with new value does that violate the rule of string being immutable.?
@Dipakshukla158
@Dipakshukla158 7 ай бұрын
.replace() is a function and in this case internally a new string is created with the replaced value and then it is stored in the original string
@TanishkaAkulwar
@TanishkaAkulwar 2 ай бұрын
we can do it in this way also the movie question #input 3 movie names from user and store in list mov1= (input("Enter the name of fav movie:")) mov2= (input("Enter the name of fav movie:")) mov3= (input("Enter the name of fav movie:")) mov_list=[mov1,mov2,mov3] print(mov_list)
@ZahidGulzar-n9k
@ZahidGulzar-n9k 5 ай бұрын
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)
@rajcantplay
@rajcantplay 4 ай бұрын
mov1 = input("enter your first favourite movie : ") mov2 = input("enter your second favourite movie : ") mov3 = input("enter your third favourite movie : ") list = (mov1, mov2, mov3) print("Your Top 3 Favourite Movies Are : ", list) No Hate But Slightly better
@malaikazulfiqar3432
@malaikazulfiqar3432 4 ай бұрын
She was trying to revise the methods she told earlier in the lacture
@devangjat3166
@devangjat3166 4 ай бұрын
aapne list hi create nahi kari.
@choconaamhai
@choconaamhai 2 ай бұрын
we can also do this names1=input("Enter your fav 1st movie : ") names2=input("Enter your fav 2nd movie : ") names3=input("Enter your fav 3rd movie : ") movies=[ ] movies.insert(0,names1) movies.insert(1,names2) movies.insert(2,names3) print(movies) print(type(movies))
@vemulasoumyasri830
@vemulasoumyasri830 5 ай бұрын
Love you shradha didi ❤️❤️❤️❤️❤️❤️
@raunakpatel2358
@raunakpatel2358 5 ай бұрын
didi 32:46 (time) pe samajh nhi aaya, ki apne alag alag variable se fir same kaise likha? aur ye chiz work kaise ki /😮
@divyamagarwal5177
@divyamagarwal5177 4 ай бұрын
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)
@Mr_Andy_Gamer
@Mr_Andy_Gamer 4 ай бұрын
Right bro mene bhi aisa hi code run Kiya he
@salonikasera6283
@salonikasera6283 10 ай бұрын
Thnx didi Your way of teaching is excellent 👌👌👌
@Sarcastism10
@Sarcastism10 8 ай бұрын
Didi practice question 2 samaj nahi aya List wala palindrome usme do list kyu liye 39:21
@govindkaushik7967
@govindkaushik7967 3 ай бұрын
# List related program # Ask the user to enter the names of their 3 favorite movies and store them into a list list_of_movies = [] list_of_movies.insert(0,input("first movie")) list_of_movies.insert(1,input("second movie")) list_of_movies.insert(2,input("third movie")) print(list_of_movies) print(type(list_of_movies))
@codingexpedition
@codingexpedition 16 күн бұрын
list = [] for i in range(3): movies = input(f" Enter the name of {i} Movie: ") list.append(movies) print(list)
@ShipayetHossain
@ShipayetHossain 6 ай бұрын
#practice 1 x=(input("name 1:")) y=(input("name 2:")) z=(input("name3:")) list=[x,y,z] print("favorite 3 movies=",list) #2nd practice check [plaindrome] num=[1,2,3,6,2,1] num1=num.copy() num1.reverse() if(num==num1): print("yes") elif(num!=num1): print("no")
@Aditya-qh6zj
@Aditya-qh6zj 5 ай бұрын
a=input("Enter your three favourite movies : first movies is :") b=input("enter second movie :") c=input("enter third movie :") list=[a,b,c] print(list)
@HamzaAli-vs9tb
@HamzaAli-vs9tb 3 ай бұрын
31:38 why am i getting index error with this code: index = 0 movies = [] while index
@SANJAY-999
@SANJAY-999 Ай бұрын
R! Traceback (most recent call last): File "", line 6 copy_list1=list1.copy() IndentationError: unexpected indent === Code Exited With Errors ===
@zubairzakeer8772
@zubairzakeer8772 6 ай бұрын
31:26 mam can we use this code a = input("please enter your 1st Favoourite movie : ") b = input("please enter your 2nd Favoourite movie : ") c = input("please enter your 3rd Favoourite movie : ") list = [a,b,c] print("you entered : ",list)
@akashnarkhede1365
@akashnarkhede1365 7 ай бұрын
movies = [input("Enter 1st movie name: "), input("Enter 2nd movie name: "), input("Enter 3rd movie name: ")] print(movies) list also support taking input inside it did you check?
@jaatRao99
@jaatRao99 4 ай бұрын
Jada dimaag mat laga bkl😂
@saifrahman9044
@saifrahman9044 7 ай бұрын
You are doing great Baji (didi). Love the way you are teaching. Love from Pakistan💌sada khush rahu
@MariamCali-ls3wc
@MariamCali-ls3wc 8 ай бұрын
a = input("enter first movie name: ") b = input("enter second movie name: ") c = input("enter third movie name: ") list = [a , b, c] print(list) mam i write code like this for question one so it is right or not?
@bhupinderkaur5460
@bhupinderkaur5460 8 ай бұрын
I also write in same way😂
@1198-
@1198- 8 ай бұрын
#another solution for the last problem: tuple = ("a", "b", "d", "c", "d") report = list(tuple) # creating a data structure called 'report', that is a list and has the same content as the tuple to be able to use the sort function report.sort(reverse = True) print(report)
@lionhare
@lionhare 2 ай бұрын
o= input("enter ur fav movie1 ") p= input("enter ur fav movie2 ") q= input("enter ur fav movie3 ") list=[o,p,q] print(list) i did this, it worked
@udayanmarsattiwar5988
@udayanmarsattiwar5988 Ай бұрын
us bro us
@rkdgamer2487
@rkdgamer2487 27 күн бұрын
33:43 par mene to isme se koi bhi program isa banaya hi nhi pr fir bhi mera output esa hi aa rha hai Mera program hai ye = a=str(input("Enter your first favourite movie name")) b=str(input("Enter your second favourite movie name")) c=str(input("Enter your third favourite movie name")) list=[a,b,c] print(list)
@munirafsar1238
@munirafsar1238 4 ай бұрын
f=input("first movie: ") s=input("second movie: ") t=input("third movie: ") lst4=[f,s,t] print(lst4)
@subhadipsinha447
@subhadipsinha447 3 ай бұрын
Good channel for practicing python beside html
@mubashirawan1464
@mubashirawan1464 22 күн бұрын
a = input("Enter Your 1st Faverite Movies Names:") b = input("Enter your 2nd Faverite Movie Name:") c = input("Enter your 3rd Faverite Movie Name:") list = [a,b,c] print("Your Faverite Movies are", list)
@Khushijaiswal074
@Khushijaiswal074 2 ай бұрын
Imp timestamps 7:40 8:50 16:00 25:15 27:00 32:00 39:00
@alokshah-hd9xm
@alokshah-hd9xm 3 ай бұрын
a = input("your fav movie ") b = input("2nd fav movie ") c = input("3rd fav movie ") i = [a , b , c] print("your fav movies are:" ,i)
@animeshpan2145
@animeshpan2145 16 күн бұрын
It is very useful❤
@dllychoudhary7586
@dllychoudhary7586 13 сағат бұрын
I have done DSA with Java but now m going Germany for MS in AI ..so do i need to switch to python now?
@FUNAI.
@FUNAI. 3 ай бұрын
36:04 kya hum yha reverse function ka use krke or badme if statement lagaye toh ye work krega
@khushitiwari7704
@khushitiwari7704 9 ай бұрын
Thank uhhh 😊❤
@ShubhVerma-CSE-ENGR
@ShubhVerma-CSE-ENGR 9 ай бұрын
Thank you dii🙏🙏 aapne bahut se concept clear krr diye thanku very much 🙏🙏⭐⭐⭐⭐⭐
@surajm_3290
@surajm_3290 4 ай бұрын
Mam why this code give wrong answer 41:15 question no.❓ 🔻print(list.sort())
@mohineeprithula
@mohineeprithula 23 күн бұрын
you're saying strings are immutable and lists are mutable. but we can easily use str.replace function and change string. so how come string is immutable?
@smilephotography8323
@smilephotography8323 10 ай бұрын
Practice Q1. a = input('enter your first fav movie : ') b = input('enter your second fav movie : ') c = input('enter your third fav movie : ') d=[a,b,c] print(d)
@vaidehiranade3046
@vaidehiranade3046 5 ай бұрын
For the First practice question about listing the movies I wrote the following code and it worked fine. Does it count as "Lists" or "Variables"?? movie1 = input("My most favourite movie is: ") movie2 = input("My second favourite movie is: ") movie3 = input("My third favourite movie is: ") listofmovies = [movie1, movie2, movie3] print(listofmovies)
@RakeshSingh-bc3pk
@RakeshSingh-bc3pk 2 ай бұрын
❤ most teacher
@Hidayahpathbd
@Hidayahpathbd 10 ай бұрын
Ye playlist ka sab se best bat hay last session of practice ❤❤❤❤
@bhavyazz20
@bhavyazz20 6 күн бұрын
Mam your voice ❤
@MySukhada
@MySukhada 4 ай бұрын
List=[1,2,3,2,1] New = List.reverse() if List != New : print(" List contains palindrome") else: print("List is not palindromic")
@aniketkeshari4114
@aniketkeshari4114 7 ай бұрын
A = [1,2,3,2,1] Print(copy(A)) Print(reverse(A))
@extendedsomeone
@extendedsomeone 2 ай бұрын
#favourite movies movie1=input("enter your first favourite movie:") movie2=input("enter your second favourite movie:") movie3=input("enter your third favourite movie:") print("list of your favourite movies :",[movie1, movie2, movie3])
@hassanraza8052
@hassanraza8052 21 күн бұрын
thank you so much mam💗💗💗
@Vaibhav-or3nc
@Vaibhav-or3nc 4 ай бұрын
lec 3 completed 😍😍💕💕
@dailyuploads3959
@dailyuploads3959 4 ай бұрын
program to count the nos of As from the list list = ["C","D","A","A","B","B","A"] count_a = list.count("A") print(count_a)
Lecture 4 : Dictionary & Set in Python | Python Full Course
54:32
Shradha Khapra
Рет қаралды 777 М.
This Is How I Fell In LOVE With Aman Sir - Shradha Khapra | Raj Shamani Clips
9:07
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 40 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,3 МЛН
Lecture 5 : Loops in Python | While & For Loops | Python Full Course
1:03:51
FASTEST Way to Learn Coding and ACTUALLY Get a Job
6:32
Rajeev Bera
Рет қаралды 28 М.
I'm 24. If you're 14-23 please watch this...
6:37
Tharun Speaks
Рет қаралды 625 М.
Lecture 2 : Strings & Conditional Statements | Python Full Course
55:41
Shradha Khapra
Рет қаралды 1,4 МЛН
Web Development Roadmap 2025 with GenAI
19:21
Chai aur Code
Рет қаралды 138 М.
Best Of The Internet (2024)
30:13
Daily Dose Of Internet
Рет қаралды 2,1 МЛН
Top Skills to Learn in 2025
9:31
CodeWithHarry
Рет қаралды 185 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39