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.
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
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 😊
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
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
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
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.
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)
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))
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
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
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)
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 ❤
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 ?
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)
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
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.
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))
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)
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
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)
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
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.
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.
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)
Mam plz check is this correct (1st question):- Mov1:-"enter first movie" Mov2:-"enter second movie" Mov3:-"enter third movie" movies=[Mov1,Mov2,Mov3] Print("your 3 fav. movies are:-", movies) 😊😊
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)
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
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?
Madam i just created a similar code of palindrome question : 👇 list = [] A = int(input("enter first element: ")) B = int(input("enter second element: ")) C = int(input("enter third element: ")) list.append(A) list.append(B) list.append(C) list1 = list.copy() list1.reverse() if(list == list1): print("yes they are palindromic") else: print("they are not palindromic")
mov1=input("enter the first moves name") mov2=input("enter the 2nd movies name") mov3=input ("enter the 3rd movies name") list=[mov1,mov2,mov3] print(list) (ye mam sahi hai code)
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)
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
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")
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
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)
# To check list is palindrome or not. I tried it myself. list = [2, 10, 5, 10, 2] a = list.copy() a.reverse() print(list) if (list == a): print("List is palindrome.") else: print("List is not palindrome.")
the solution of practice question 01: h1= input("enter your favorite movie name:") h2= input("Now,enter your second favorite movie name:") h3= input("Great,enter your last favorite movie name:") list = [h1,h2,h3] print(list)
list_1 = [ 1,2,3,2,1] list_2 = list_1.copy() list_2.reverse() if (list_1 == list_2): print("The above list is palindrom") else: print("list is not palindrom")
a = input("Please enter your 1st favorite movie name =") b = input("Please enter your 2st favorite movie name =") c = input("Please enter your 3st favorite movie name =") print(a,b,c) list = [a,b,c] print(list)
#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)
q=1 movie question solution(without using append) movie1=input("tell me your 1 favourite movies : ") movie2=input("tell me your 2 favourite movies : ") movie3=input("tell me your 3 favourite movies : ") mov=["movie1","movie2","movie3"] mov[0]=movie1 mov[1]=movie2 mov[2]=movie3 a=(mov) print("your favorite movie is",mov)
#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])
Kon kon 2024 ke last month December main dekh raha hai
😶🤚
😂
🖐
Mai
@SoumodipNaskar09
Bro
Where's your motherland?
Best channel for all coders 🎉❤
Right
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.
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
use vs code To write code
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 😊
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
same i did, i just use input, and then list [x, y, z]
and print list 😂
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
i did the same
@@its_shagufta-codes yup bro and this one is easy
I also did same
Same bro😂
check the type aik bar bhai
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
mene bhi same ase hi kiya hai
You can do
l = [input "first movie name", input"second movie name" .....]
Print(l)
This actually helped me, I was stuck on a question from last 2 days.
yes you can. either ways it does the same job :)
Vahi soch raha hu bencho vo interviewer bhi sar bhod dega itna locha dekkhe 😂@@craftingwithriya.
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.
Thanks dude!!
Already description me mentioned hn.
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)
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))
Concept is crystal clear 🎉 Thank you mam 🙏🏻
m1=input("Enter 1st Movie name: ")
m2=input("Enter 2nd movie name: ")
m3=input("Enter 3rd movie name: ")
list=[m1,m2,m3]
print(list)
i did the same thing
i did the same thing too
Same❤😂
Same I did 😅😅
Thanks dii aapne mujhe kitna kuch sikhaya bilkul easy language ke saath
Anyone from September 2024
Yes
Me
yss
@@arohi_303 tum python seekh rhi ho?
@@Rajput_harsh_0009 ofc
nice way to learn python and the way you explain is very easy to understand. Thank you .
1. tup = (2, 1, 3, 1,)
2. Print(tup)
Aswer = (2,1,3,1
YOU Should Start From Basics Like What are Functions, classess, And Objects . Because After Certain Time It Becomes Heavy To Understand. For Beginners
Bhai Pehale ja ke" introduction to python" Dekh ke aa
38:37 another code
list1= [1,2,1]
copy1= list1.copy()
copy1.reverse()
print(copy1)
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
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
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)
41:00
tup=("C","D","A","A","B","B","A")
print(tup.count("A"))
lisst=list(tup[:])
lisst.sort()
print(lisst)
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 ❤
Exactly
It's there only : drive.google.com/drive/folders/1LahwPSc6f9nkxBiRrz6LFUzkrg-Kzvov?usp=sharing
Thank you Madamji.. Found notes ❤
BEST SERIES FOR PYTHON ON TH-cam
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 ?
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)
yes
Thanks to my teacher that he introduced your channel to me. You are the best explainer
Appreciate your efforts to record such long videos and these are really useful for beginners!
I am mechanical Engineer... But still i am leaning this from you...
Because of you..
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
BCA students are here ❤❤❤
Bhai BCA karke bhi coding kar sakte hai
I am in 11 th
No btech CSE students
@@Aryan_Singh_coder bhai bca mai coding syllabus me hi rheti hai
@@Aryan_Singh_codertry kar ki koi ache college me CSE mile bca ko backup me rakh
@@KakashiHatake-ux1jq thanks bro
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))
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.
Best channel for all codes
Nice
Didi Maine ye code crame Kiya tha palindrome ka😂😂 kisi ne aisa copy ka method nahi bataya tha aj clear hua TQ a lot ❤❤❤❤❤
list = []
for i in range(3):
movies = input(f" Enter the name of {i} Movie: ")
list.append(movies)
print(list)
VERY HELPFUL VIDEO SHRADDHA MA'AM , THANKS A LOT
😢😂😂😂😅😅😅
Hjk😅
@@ashu10023 you'll be a great youtuber bro
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))
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)
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
I do same as u
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)
Thank you so much madam❤
Love you shradha didi ❤️❤️❤️❤️❤️❤️
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
A = [1,2,3,2,1]
Print(copy(A))
Print(reverse(A))
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.
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.
tere makima
what the
fo
movie1=input("")
movie2=input("")
movie3=input("")
movies=[movie1,movie2,movie3]
print(movies)
@SyedImranShah-gi8cv print ("abc")
Thnx didi
Your way of teaching is excellent 👌👌👌
f=input("first movie: ")
s=input("second movie: ")
t=input("third movie: ")
lst4=[f,s,t]
print(lst4)
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)
#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")
You are doing great Baji (didi). Love the way you are teaching. Love from Pakistan💌sada khush rahu
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)
😅I am pursuing a minor degree in AI at IIT Ropar, however I discovered that you educate better than our facilities.
Mam your voice ❤
Mam plz check is this correct (1st question):-
Mov1:-"enter first movie"
Mov2:-"enter second movie"
Mov3:-"enter third movie"
movies=[Mov1,Mov2,Mov3]
Print("your 3 fav. movies are:-", movies)
😊😊
31:40 this is easy way to solve that code
movi1=input()
movi2=input()
movi3=input()
movies=[movi1,movi2,movi3]
print(movies)
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)
I did the same way , is it correct?
List=[1,2,3,2,1]
New = List.reverse()
if List != New :
print(" List contains palindrome")
else:
print("List is not palindromic")
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
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?
Perfect✨
Madam i just created a similar code of palindrome question : 👇
list = []
A = int(input("enter first element: "))
B = int(input("enter second element: "))
C = int(input("enter third element: "))
list.append(A)
list.append(B)
list.append(C)
list1 = list.copy()
list1.reverse()
if(list == list1):
print("yes they are palindromic")
else:
print("they are not palindromic")
Good channel for practicing python beside html
R!
Traceback (most recent call last):
File "", line 6
copy_list1=list1.copy()
IndentationError: unexpected indent
=== Code Exited With Errors ===
It is very useful❤
Who is watching in July
Hum
Me....
In the end of July 😂
Kaunase clg and yr me ho..?
here from aug
mov1=input("enter the first moves name")
mov2=input("enter the 2nd movies name")
mov3=input ("enter the 3rd movies name")
list=[mov1,mov2,mov3]
print(list)
(ye mam sahi hai code)
a = input ("Value :")
b = input ("Value :")
c= input ("Value :")
d= input ("Value :")
movie=(a,b,c,d)
print(tup[0:])
for very last question
grades=("C","D","A","A","B","B","A")
print(grades.count("B"))
grades_list=list(grades)
grades_list.sort()
print(grades_list)
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)
best coding classes ever
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
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")
copylist.list.copy()
copylist.reverse()
list=["d",'a','d']
if list==list[::-1]:
print('palindrom')
else:
print('not palindrom')
this not working
Thank you! You saved my life for my upcoming exam. Btw I love your teaching style
thank you so much mam💗💗💗
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)
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
She was trying to revise the methods she told earlier in the lacture
aapne list hi create nahi kari.
app sey bhi kum line code😎😎😎😎
mov1 = input("enter 1tsd movie:")
mov2 = input("enter 2nd movie:")
mov3 = input("enter 3rd movie:")
print([mov1,mov2,mov3])
😎😎😎😎😎😎
THANKS DIDI ❤
IT HELPS ME A LOT 🙏
#GULABI DIL
#GULABI DIL
#GULABI DIL 🙂
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)
Nice lecture 👌 👏
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
us bro us
lec 3 completed 😍😍💕💕
2nd mathod check palindrome
l=["r","a","c","e","c","a","r"]
if l[: :-1]==l:
print('this is palindrome')
else:
print("no palindrome")
❤ most teacher
# To check list is palindrome or not. I tried it myself.
list = [2, 10, 5, 10, 2]
a = list.copy()
a.reverse()
print(list)
if (list == a):
print("List is palindrome.")
else:
print("List is not palindrome.")
#pallindrome list
lst_1=[1,2,3,2,1]
a=(lst_1[0:5])
b=(lst_1[-5:])
if(a==b):
print("palindrome list")
else:
print("not a palindrome list")
the solution of practice question 01:
h1= input("enter your favorite movie name:")
h2= input("Now,enter your second favorite movie name:")
h3= input("Great,enter your last favorite movie name:")
list = [h1,h2,h3]
print(list)
list_1 = [ 1,2,3,2,1]
list_2 = list_1.copy()
list_2.reverse()
if (list_1 == list_2):
print("The above list is palindrom")
else:
print("list is not palindrom")
lots of love from Pakistan!
Didi mere se first wala question ho gya tha 😊😊
a = input("Please enter your 1st favorite movie name =")
b = input("Please enter your 2st favorite movie name =")
c = input("Please enter your 3st favorite movie name =")
print(a,b,c)
list = [a,b,c]
print(list)
#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)
q=1 movie question solution(without using append)
movie1=input("tell me your 1 favourite movies : ")
movie2=input("tell me your 2 favourite movies : ")
movie3=input("tell me your 3 favourite movies : ")
mov=["movie1","movie2","movie3"]
mov[0]=movie1
mov[1]=movie2
mov[2]=movie3
a=(mov)
print("your favorite movie is",mov)
#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])
Hi, the third lecture PDF is not available on Google Drive. So, please look into this matter.
Now it's uploaded
Mam why this code give wrong answer 41:15 question no.❓
🔻print(list.sort())
36:04 kya hum yha reverse function ka use krke or badme if statement lagaye toh ye work krega
I love to study and code❤
Can answer-1 be this:
movie1 = input("Enter 1st movie name:")
movie2 = input("Enter 2nd movie name:")
movie3 = input("Enter 3rd movie name:")
fav_movies = [movie1, movie2, movie3]
print(fav_movies)