00:01 Covering Dictionary and Set in Python 02:03 Dictionaries store data in key-value pairs. 06:09 Dictionary in Python allows for mutable and unordered key-value pairs. 08:10 Dictionary in Python allows to access, change and assign values 12:16 Using dictionaries to store nested data in Python. 14:10 Working with dictionary keys and type casting 18:07 Working with tuples and dictionaries in Python 20:00 Understanding errors and methods in dictionary operations 23:41 Using methods to modify dictionaries in Python 25:36 Dictionary in Python allows for storing multiple values with unique keys. 29:17 Working with dictionaries and sets in Python 31:06 Sets in Python ensure unique values and can be created using a specific syntax. 35:23 Understanding dictionaries, sets, and their properties in Python 37:33 Understanding the clear and pop methods in Python sets. 41:37 Understanding Dictionary and Set operations in Python 43:21 Understanding dictionaries and key-value pairs in Python 47:10 Understanding dictionaries and sets in Python 49:15 Working with dictionaries and sets in Python. 53:04 Creating sets in Python for storing pairs and values
@Shradha Khapra , Mam, I think at the End of all the lectures or main topics you should teach us 2-3 projects which covers whole python concepts. Projects helps a lot.
Nah my bro this course is actually for beginners and we need to learn some libraries of python to do projects... But for logic building it would be better if we'll do practice questions from google ot gpt
01:04 Dictionary => stores data in key:value pairs (like word: meaning) => dict = { "key1" : "value" "key2" : "value" } => lists and tuples can also be stored in dictionary => key cant be lists/ dict... key can be a floating number, integer, boolean value => dictionary is generally mutable => to keep it simple we use strings to name key values PROPERTIES OF DICTIONARY => unordered... unlike in list, tuple and string as we have index there but not in dict => here duplicate keys aren't possible To access the elements of a dictionary print(name of dict["key name"]) => if key name is not existing thenit showsn ana error => to change the vlaues dict["key name"] = "re-assigned value"...... the old value shall be over-written => in the same way we can add a new key: value pair in python => to have an empty dictionary ... null_dict ={} ...initially defined then as time passes we can dd elements in the dictionary NESTED DICTIONARY => To add a sub dictionary in a dictionary => to extract the info from a dictionary print(name of dict["key1"]["subkey"]) METHODS IN DICTIONARY Dot keys methods => myDict.keys() => to typecast as list we write as list( myDict.keys()) => print(len(dict))....total number of key value pairs (or) print(len(dict.keys())) => myDict.values() .....gives the values => myDict.items()....returns all the key: value pairs as tuples => We can also type cast the tuple into list as vaiable = list(myDict.items()) => muDict.get("key").... returns the key acc to value d["key'] (or) d.get("key) to get value of the key => [ ]- notation returns an error if the key value isn't existing but second one returns none as the key value doesn't exist => we follow second one as there exists less probability of error and if there is error also it doesnt affect the program written after => myDict.update({newDict})....inserts specified elements to the dictionary... use curly braces => To add multiple elements together seperate them using a comma => If same key is used again in the same method then the old key is overwritten here Tqsm Shradha mam Lots of love 😊😊
Great job, Shardha! All your sessions have been excellent. I’m 43 years old and currently supporting cloud infrastructure. I am transitioning into automation in networking and security. Initially, I was very worried about learning Python, but your teaching style has given me the confidence to move forward. Thanks to you, I’m determined to start my automation journey within the next two months at most. God bless you!
Hi didi, Please go ahead with this python series & cover the topics like functions & modules, advance structures like stacks, queues & linked lists, OOP in Python e.t.c & try to make a oneshot on Django. Hope so you'll help many Python learners out there 🥺🙏
29:55 S={1,34,56,} print(S) print(type(S)) 41:20 #union works in set Set1={1,2,3,4} Set2={1,4,5,2} print(Set1.union(Set2)) 42:35 #intersection in set Set1={1,2,3,4} Set2={1,4,5,3,2} print(Set1.intersection(Set2))
As m revising python these videos r helping me n ur way of teaching is toooo good..some concepts which i had not understood i got it by ur videos ....Thank u so much for dis wonderful videos❤❤
Summary :-----> 00:01 Covering Dictionary and Set in Python 02:03 Dictionaries store data in key-value pairs. 06:09 Dictionary in Python allows for mutable and unordered key-value pairs. 08:10 Dictionary in Python allows to access, change and assign values 12:16 Using dictionaries to store nested data in Python. 14:10 Working with dictionary keys and type casting 18:07 Working with tuples and dictionaries in Python 20:00 Understanding errors and methods in dictionary operations 23:41 Using methods to modify dictionaries in Python 25:36 Dictionary in Python allows for storing multiple values with unique keys. 29:17 Working with dictionaries and sets in Python 31:06 Sets in Python ensure unique values and can be created using a specific syntax. 35:23 Understanding dictionaries, sets, and their properties in Python 37:33 Understanding the clear and pop methods in Python sets. 41:37 Understanding Dictionary and Set operations in Python 43:21 Understanding dictionaries and key-value pairs in Python 47:10 Understanding dictionaries and sets in Python 49:15 Working with dictionaries and sets in Python. 53:04 Creating sets in Python for storing pairs and values thankyou
Didi you rock in teaching . Seriously all my friends and my hostel students watch your lectures, advice , and much more. I really loved your teaching and I hope all teachers were as same as you.Thank you Didi I also learnt java by seeing your lectures and at present learning python and web development from you lectures.
*I don't know when this video recorded but still - Just a heads-up that in Python versions 3.7 and later, dictionaries are actually ordered! This means the order you add key-value pairs is the order you'll get when you loop through them or convert them to a list.*
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.
42:52 # ite's my practice Practice # 1) Write a program to store following word meanings in a python dictionary: # table : "A Piece of furniture", "List of facts & figures" # cat: "A small animal" store = { "cat": "A small animal", "table": ["A piece of furniture", "list of facts & figures"] } # 2) You are fiven a list of subjects for students. Assume one classrooom is required for a subject. How many classrooms are needed by all studentes. subjects = ["python","java", "c++", "python", "javascript","java", "python", "java", "c++", "c"] setSubjects = set(subjects) print(setSubjects) print(len(setSubjects)) # 3) Write a program to enter marks of 3 subjects from the user and store them in a dictionary. Start with an empty dictionary & add on by one. Use subject names as key & marks as value. stu_res = {} total_marks = 0 for i in range(1,5): subjects = input(f"Enter your {i} subjects name: ") marks = int(input(f"Enter marks for {subjects} (out of 100): ")) stu_res[subjects] = marks total_marks += marks print(stu_res) print(stu_res.keys()) average_marks = total_marks / len(stu_res) percentage = (total_marks / (len(stu_res) * 100)) * 100 if percentage >= 90: feedback = "Excellent" elif 70
great , am amazed at this amazing work supper cool. thank you for providing such an outstanding and hhighly interactive lectures. i am ex-college english lecturer and am amazed at your work.
student={} n=int(input("enter no of subjeects to be entered :")) for i in range(n): key=input("enter your key :") value=int(input("Enter your marks :")) student.update({key:value}) print(student)
# WAP to enter marks of 3 subjects from the user an store them in a dictionary . sub_marks={ 'hindi':input("enter your hindi marks :"), 'english':input("enter your english marks :") } print(sub_marks) print(type(sub_marks))
44:09 can we also store it in one string only, like this: dict1={ "table":"A piece of furniture, a list of facts and figures", "cat": "A small animal" } print(dict1)
code for 2nd last excersice data = {} phy = input("Enter marks in phy") data.update({'phy': phy}) chem = input("Enter marks in chem") data.update({'chem': chem}) bio = input("Enter marks in bio") data.update({'bio': bio}) print(data)
#solution dict = {} num1= int(input("enter marks for english")) num2= int(input("enter marks for hindi")) num3= int(input("enter marks for python")) dict.update({"english":num1}) dict.update({"hindi":num2}) dict.update({"python":num3}) print(dict)
22:45 .............Error may occurs And also We Can Identify Where The Error Is Occured Useing It"s Its Not Much Difficult To Identify It..........................
at 48:56 , I wrote this script result = {} marks_sci = int(input("Enter ur marks of Bangla : ")) marks_english = int(input("Enter ur marks of English : ")) marks_math = int(input("Enter ur marks of math : ")) result["bangla"] = marks_sci result["english"] = marks_english result["Math"] = marks_math print(result)
Yr sb python dsa ke liye request kro. 1 sem me to khi se bhi pdh liya. But wnd sem me ache se pdhna hai. Systematic way me.😊❤😊❤😊 Idhar udhar se ek ek topic ni pdhna.❤❤🎉😊🎉😊🎉😊
Thank You So much DiDi For your Amazing class.... I have been listening to you for a year mashallah may Allah give you more progress your teaching method is very good keep it up. I'M from Pakistan , I thank you enough because I have learned a lot from you Javascript HTML CSS SQL and Python , I look forward to your every lecture thank you very much
Mam ise badh please python dsa ki video.❤❤❤🎉🎉 RUclips pe python me dsa ki koi video hi ni hai. ❤❤❤❤😊 Ese me agr ap dsa in python ki video bna doge to 😊😊❤ Aap aur bhi famous ho jaoge. Joki ap pehle se hi ho. And apse acha youtube pe to koi pdhata bhi ni.❤❤❤❤🎉🎉🎉🎉
mark = {} x = input ("Please enter your subject 1 with marks") y = input ("Please enter your subject 2 with marks") z = input ("Please enter your subject 3 with marks") (mark.update({"PHY":x})) (mark.update({"bio":y})) (mark.update({"Chemistry":z})) print(x,y,z) print(mark)
bcoz in dictionaries, the keys() function returns only the top-level keys, while the values() function returns all values, including those in nested dictionaries.
mam mai na calculator banaya ap ki 2 video daik kar 3 vedio daik kar grade calculator banaya i am 13 year old and i am a poor student yeh computer mira nie hai
18:40 @Shradha Khapra Mam how can I individually access those pairs directly without getting a new variable "pairs"? print(student.items[0]) > it shows error . plz help me
Real time usage of set in python: Suppose you have a list of patient names in a healthcare system. You want to remove any duplicate entries. patient_names = ['Alice', 'Bob', 'Alice', 'Charlie', 'Bob'] unique_patients = set(patient_names) print(unique_patients) Output: {'Alice', 'Bob', 'Charlie'}
subject = {} x =str(input("enter subject" )) y =int(input("marks")) subject.update({x:y}) x =str(input("enter subject" )) y =int(input("marks")) subject.update({x:y}) x =str(input("enter subject" )) y =int(input("marks")) subject.update({x:y}) print(subject)
Didi I got a doubt does this program work for dictionary,if not why? dict={ input("enter subjects name "):float(input("enter the makrs for specified subject ")), input("enter subjects name "):float(input("enter the makrs for specified subject ")), input("enter subjects name "):float(input("enter the makrs for specified subject ")), } print(dict)
WAP to get the values of marks of 3 subject from the user and store theme in dictionary with subject name and marks. Make sure that the dictionary is delcare as empty --------- subject_and_marks = {} subj1_marks = int(input("Enter subj1 marks")) subj2_marks = int(input("Enter subj2 marks")) subj3_marks = int(input("Enter subj2 marks")) subject_and_marks["subj1"] = subj1_marks subject_and_marks["subj2"] = subj2_marks subject_and_marks["subj3"] = subj3_marks print(subject_and_marks)
Mam I have a doubt After running the code why it is showing dict_keys on the console Whereas the dictionary name is student I think it should be student_keys TIME 18:48
Attendance ✅
Total kitne chapters hone Wale hai python me ?
I could not understand Set() is muteable or not
@@ZainAliTheem20hello bro total kitne chapters hone Wale hai python me
@@ImRich-xo8cm 8 chapter ✅
4
00:01 Covering Dictionary and Set in Python
02:03 Dictionaries store data in key-value pairs.
06:09 Dictionary in Python allows for mutable and unordered key-value pairs.
08:10 Dictionary in Python allows to access, change and assign values
12:16 Using dictionaries to store nested data in Python.
14:10 Working with dictionary keys and type casting
18:07 Working with tuples and dictionaries in Python
20:00 Understanding errors and methods in dictionary operations
23:41 Using methods to modify dictionaries in Python
25:36 Dictionary in Python allows for storing multiple values with unique keys.
29:17 Working with dictionaries and sets in Python
31:06 Sets in Python ensure unique values and can be created using a specific syntax.
35:23 Understanding dictionaries, sets, and their properties in Python
37:33 Understanding the clear and pop methods in Python sets.
41:37 Understanding Dictionary and Set operations in Python
43:21 Understanding dictionaries and key-value pairs in Python
47:10 Understanding dictionaries and sets in Python
49:15 Working with dictionaries and sets in Python.
53:04 Creating sets in Python for storing pairs and values
created by merlin 😂
Thanks dude!!
@Shradha Khapra , Mam,
I think at the End of all the lectures or main topics you should teach us 2-3 projects which covers whole python concepts.
Projects helps a lot.
well it is very early to build a project because it is very basics so after the course then I agree with you we need protect
yes mam
mam please make a video on matrix in python .
Nah my bro this course is actually for beginners and we need to learn some libraries of python to do projects... But for logic building it would be better if we'll do practice questions from google ot gpt
sab tag karain
ya bohat helpful ho ga
01:04 Dictionary
=> stores data in key:value pairs (like word: meaning)
=> dict = {
"key1" : "value"
"key2" : "value"
}
=> lists and tuples can also be stored in dictionary
=> key cant be lists/ dict... key can be a floating number, integer, boolean value
=> dictionary is generally mutable
=> to keep it simple we use strings to name key values
PROPERTIES OF DICTIONARY
=> unordered... unlike in list, tuple and string as we have index there but not in dict
=> here duplicate keys aren't possible
To access the elements of a dictionary
print(name of dict["key name"])
=> if key name is not existing thenit showsn ana error
=> to change the vlaues
dict["key name"] = "re-assigned value"......
the old value shall be over-written
=> in the same way we can add a new key: value pair in python
=> to have an empty dictionary ...
null_dict ={}
...initially defined then as time passes we can dd elements in the dictionary
NESTED DICTIONARY
=> To add a sub dictionary in a dictionary
=> to extract the info from a dictionary
print(name of dict["key1"]["subkey"])
METHODS IN DICTIONARY
Dot keys methods
=> myDict.keys()
=> to typecast as list we write as list( myDict.keys())
=> print(len(dict))....total number of key value pairs (or) print(len(dict.keys()))
=> myDict.values() .....gives the values
=> myDict.items()....returns all the key: value pairs as tuples
=> We can also type cast the tuple into list as
vaiable = list(myDict.items())
=> muDict.get("key").... returns the key acc to value
d["key'] (or) d.get("key) to get value of the key
=> [ ]- notation returns an error if the key value isn't existing but second one returns none as the key value doesn't exist
=> we follow second one as there exists less probability of error and if there is error also it doesnt affect the program written after
=> myDict.update({newDict})....inserts specified elements to the dictionary... use curly braces
=> To add multiple elements together seperate them using a comma
=> If same key is used again in the same method then the old key is overwritten here
Tqsm Shradha mam Lots of love 😊😊
well explained 👏
osm bro
love you ❤❤❤❤
Great job, Shardha! All your sessions have been excellent.
I’m 43 years old and currently supporting cloud infrastructure. I am transitioning into automation in networking and security. Initially, I was very worried about learning Python, but your teaching style has given me the confidence to move forward.
Thanks to you, I’m determined to start my automation journey within the next two months at most. God bless you!
Shardha❎ Shraddha ✅🗿🗿
Hi didi, Please go ahead with this python series & cover the topics like functions & modules, advance structures like stacks, queues & linked lists, OOP in Python e.t.c & try to make a oneshot on Django. Hope so you'll help many Python learners out there 🥺🙏
you go to hell she is our teacher i am muslim and islam taught to respect your teachers plz
Arey yrr mai idhar udhar ghum raha tha finally playlist mil gai yrr❤❤😂
29:55
S={1,34,56,}
print(S)
print(type(S))
41:20
#union works in set
Set1={1,2,3,4}
Set2={1,4,5,2}
print(Set1.union(Set2))
42:35
#intersection in set
Set1={1,2,3,4}
Set2={1,4,5,3,2}
print(Set1.intersection(Set2))
As m revising python these videos r helping me n ur way of teaching is toooo good..some concepts which i had not understood i got it by ur videos ....Thank u so much for dis wonderful videos❤❤
print("WONDERFUL SESSION")
WONDERFUL SESSION
WONDERFUL SESSION
Fr
Summary :----->
00:01 Covering Dictionary and Set in Python
02:03 Dictionaries store data in key-value pairs.
06:09 Dictionary in Python allows for mutable and unordered key-value pairs.
08:10 Dictionary in Python allows to access, change and assign values
12:16 Using dictionaries to store nested data in Python.
14:10 Working with dictionary keys and type casting
18:07 Working with tuples and dictionaries in Python
20:00 Understanding errors and methods in dictionary operations
23:41 Using methods to modify dictionaries in Python
25:36 Dictionary in Python allows for storing multiple values with unique keys.
29:17 Working with dictionaries and sets in Python
31:06 Sets in Python ensure unique values and can be created using a specific syntax.
35:23 Understanding dictionaries, sets, and their properties in Python
37:33 Understanding the clear and pop methods in Python sets.
41:37 Understanding Dictionary and Set operations in Python
43:21 Understanding dictionaries and key-value pairs in Python
47:10 Understanding dictionaries and sets in Python
49:15 Working with dictionaries and sets in Python.
53:04 Creating sets in Python for storing pairs and values
thankyou
THE good thing is that we have a good range of exercises at the end of the lecture. Thank you maam!
Didi you rock in teaching . Seriously all my friends and my hostel students watch your lectures, advice , and much more. I really loved your teaching and I hope all teachers were as same as you.Thank you Didi I also learnt java by seeing your lectures and at present learning python and web development from you lectures.
*I don't know when this video recorded but still - Just a heads-up that in Python versions 3.7 and later, dictionaries are actually ordered! This means the order you add key-value pairs is the order you'll get when you loop through them or convert them to a list.*
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.
hi kitne lectures complete hue ?
This python series is very helpful for me, thanks a lot team apnacollege for providing this wonderful series…..
Out class no words to explain my feelings from Pakistan ❤❤❤❤lots of love Shraddha
you are good because you are not wasting the time and going fast. Exactly this is I am looking for.
42:52
# ite's my practice Practice
# 1) Write a program to store following word meanings in a python dictionary:
# table : "A Piece of furniture", "List of facts & figures"
# cat: "A small animal"
store = {
"cat": "A small animal",
"table": ["A piece of furniture", "list of facts & figures"]
}
# 2) You are fiven a list of subjects for students. Assume one classrooom is required for a subject. How many classrooms are needed by all studentes.
subjects = ["python","java", "c++", "python", "javascript","java", "python", "java", "c++", "c"]
setSubjects = set(subjects)
print(setSubjects)
print(len(setSubjects))
# 3) Write a program to enter marks of 3 subjects from the user and store them in a dictionary. Start with an empty dictionary & add on by one. Use subject names as key & marks as value.
stu_res = {}
total_marks = 0
for i in range(1,5):
subjects = input(f"Enter your {i} subjects name: ")
marks = int(input(f"Enter marks for {subjects} (out of 100): "))
stu_res[subjects] = marks
total_marks += marks
print(stu_res)
print(stu_res.keys())
average_marks = total_marks / len(stu_res)
percentage = (total_marks / (len(stu_res) * 100)) * 100
if percentage >= 90:
feedback = "Excellent"
elif 70
What a great way of teaching. Love from Pakistan.😍😍😍🥰😘
great , am amazed at this amazing work supper cool. thank you for providing such an outstanding and hhighly interactive lectures. i am ex-college english lecturer and am amazed at your work.
Shraddha is quite obsessed with her cgpa i.e. 9.4 , she be putting it everywhere
student={}
n=int(input("enter no of subjeects to be entered :"))
for i in range(n):
key=input("enter your key :")
value=int(input("Enter your marks :"))
student.update({key:value})
print(student)
In Python, sets are mutable. This means you can modify a set after it is created, by adding or removing elements.
THANK YOU SO MUCH SHRADDHA DI.....THIS COURSE IS REALLY VERY HELPFUL.......PLEASE COVER ALL AREAS RELATED TO PYTHON...LOTS OF LOVE....🤗🤗❤❤❤❤
set = {(9,9.0)}
print(type(set))
print(set)
it works properly without writing int and float.
Is it because you used one tuple itself in the set?
Best teacher ever i seen on RUclips ❤
Thank You didi For your Amazing class....
i have become your Fan in only 3 classs....
Love from Bangladesh😍😍😍
You are best teacher you make coding easier 😊
print("you are best best teacher ")😍🥰
best best?
Thanks Dear
I started this course from lecture First
# WAP to enter marks of 3 subjects from the user an store them in a dictionary .
sub_marks={
'hindi':input("enter your hindi marks :"),
'english':input("enter your english marks :")
}
print(sub_marks)
print(type(sub_marks))
well done!
44:09 can we also store it in one string only, like this:
dict1={
"table":"A piece of furniture, a list of facts and figures",
"cat": "A small animal"
}
print(dict1)
Yourr explanation is excellent mam♥️🙏.
Hatts of to ur efforts on making useful videos like this many more
Thank you so much didi for your efforts 🙌👍✨.
Literally enjoyed via studying from you 😊.
खपड़ा जी आप बहुत अच्छा पढ़ाती है
Thankyou
code for 2nd last excersice
data = {}
phy = input("Enter marks in phy")
data.update({'phy': phy})
chem = input("Enter marks in chem")
data.update({'chem': chem})
bio = input("Enter marks in bio")
data.update({'bio': bio})
print(data)
bro jo input hai na usko int me type cast kar as input is by default string data type ka hota hai . error aa jayega
@@MridulBisht-t9g thannks bro
yes and u can also use eval instead of int
#solution
dict = {}
num1= int(input("enter marks for english"))
num2= int(input("enter marks for hindi"))
num3= int(input("enter marks for python"))
dict.update({"english":num1})
dict.update({"hindi":num2})
dict.update({"python":num3})
print(dict)
48:46 it is written "add one by one" in the question
love from Pakistan really such a beautiful way of teaching
India ke channel se coding seekh kar , missile banaoge phir hum par hi attack karoge 😮💨😮💨
print("Best teacher ")
print("Thank you ma'am")
@shradhaKD
Thankyou so much for this series. it's awesome. I'm not a IT background, I'm a physicist. I will mention you in my success also in Thesis.
😢😢😢
itni khushi
itni khushi mujay aaj tak nai hui
kia Zabardast padhati hn ma'am
Meri Dua ha k Allah inko Salamat rakhy
ARE you from pakistan
Explanation is very good❤
Really useful videos❤Thank you so much❤
22:45 .............Error may occurs And also We Can Identify Where The Error Is Occured Useing It"s
Its Not Much Difficult To Identify It..........................
thankyou so much for this wonderful playlist of python i admire your effort ❤
if possible plz uplaod videos of python with DSA
which sem bro?
subject = {}
sub1 = input("Enter Your 1st Subject:")
marks1 = int(input("Marks:" ))
sub2 = input("Enter Your 2nd Subject:")
marks2 = int(input("Marks:" ))
sub3 = input("Enter YOur 3th Subject:")
marks3 = int(input("Marks:" ))
subject[sub1]= marks1
subject[sub2]= marks2
subject[sub3]= marks3
print(subject)
print(type(subject))
at 48:56 , I wrote this script
result = {}
marks_sci = int(input("Enter ur marks of Bangla : "))
marks_english = int(input("Enter ur marks of English : "))
marks_math = int(input("Enter ur marks of math : "))
result["bangla"] = marks_sci
result["english"] = marks_english
result["Math"] = marks_math
print(result)
Too easy way to teach thanks a lot. :)
Tq mam. Actually I am waiting for this video now day 🙏🙏
Set ={}
Set.add =("physics: 67 ,")
Set.add =( "chemistry 65 ,)
Set.add = ("art 65 ,)
Print(set) 48:29
I kindly request
PLEASE UPLOAD THE VIDEOS DAILY💛
52:23
kiya hum float aur integer value ko "sets" me is tarha add nahi kar sakte ?
value = {(float, 9.0), (int, 9)} # with-out double quotion's .
Thank you 🥰
Thanks for your helpful lectures 😊
Yr sb python dsa ke liye request kro.
1 sem me to khi se bhi pdh liya.
But wnd sem me ache se pdhna hai. Systematic way me.😊❤😊❤😊
Idhar udhar se ek ek topic ni pdhna.❤❤🎉😊🎉😊🎉😊
Thank You So much DiDi For your Amazing class....
I have been listening to you for a year mashallah may Allah give you more progress your teaching method is very good keep it up.
I'M from Pakistan , I thank you enough because I have learned a lot from you Javascript HTML CSS SQL and Python , I look forward to your every lecture thank you very much
Salam
Miss as using pop attribute we can delete a random value. I didn' t find why we use this and what's the benefit of using this property?
very good tutorial for students thank you sister❤❤
Incredible knowledge base, keep it up
Ma'am,
Last vale Question(duration-50:10) ko ham *Union* set method ka use karke bhi kar sakte hai .
We love your classes,
Please make video lecture on pygame development 😢
Its our request
Vote for lectures on pygame
👇
Alhumdullilha 💖
Satisfied
Mam ise badh please python dsa ki video.❤❤❤🎉🎉
RUclips pe python me dsa ki koi video hi ni hai. ❤❤❤❤😊
Ese me agr ap dsa in python ki video bna doge to 😊😊❤
Aap aur bhi famous ho jaoge.
Joki ap pehle se hi ho.
And apse acha youtube pe to koi pdhata bhi ni.❤❤❤❤🎉🎉🎉🎉
set={"python","java","c++","python","javascript","java","python","java","c++","c"}
len=len(set)
print("number of classrooms are", len)
This IS veryyy wonderful session ma'am 🌼💖❣️
val = set()
num1 = 9
num2 = 9.0
val.add(num1)
val.add(num2)
print(val)
print(type(val))
not working
53:37
another possible solution without typing float and int
x = set()
x.add(9)
x.add((9.0,))
print(x)
print(type(x))
Wrong
Hi
Nice Session Ma'am... Very Useful.
thank you so much di for zero cost super content ..
mark = {}
x = input ("Please enter your subject 1 with marks")
y = input ("Please enter your subject 2 with marks")
z = input ("Please enter your subject 3 with marks")
(mark.update({"PHY":x}))
(mark.update({"bio":y}))
(mark.update({"Chemistry":z}))
print(x,y,z)
print(mark)
A-o-A mam,
key() function does not print the nested key, but value() function print the values of nested function, why?
bcoz in dictionaries, the keys() function returns only the top-level keys, while the values() function returns all values, including those in nested dictionaries.
wow very nice session thank you🤩
Ma'am you are very grateful ❣️❣️
sabko pata hai yeh cheez😂😂😂😂
Thank you so much ma'am ❤️😊
A = dict()
Table:"a peace of furniture ,"list of facts & figures"
Cat :"a small animal "
Print (dict(a))
mam mai na calculator banaya ap ki 2 video daik kar 3 vedio daik kar grade calculator banaya i am 13 year old and i am a poor student yeh computer mira nie hai
Bro gonna beat Elon Musk🗿🗿
18:40
@Shradha Khapra Mam how can I individually access those pairs directly without getting a new variable "pairs"?
print(student.items[0]) > it shows error . plz help me
Same problem bro i also getting error at this point.
Do you got the solution?
Thank you didi for 4 lecture -first comment
Thanks You Dii For this lecture ❤️
Thank you for this lecture
Real time usage of set in python:
Suppose you have a list of patient names in a healthcare system. You want to remove any duplicate entries.
patient_names = ['Alice', 'Bob', 'Alice', 'Charlie', 'Bob']
unique_patients = set(patient_names)
print(unique_patients)
Output: {'Alice', 'Bob', 'Charlie'}
marksValue = {"English":int(input("English: ")),"Phy":int(input("Phy: ")),"Maths":int(input("Maths: "))}
dict_keys = list(marksValue.keys())
dict_val = list(marksValue.values())
result={}
result[dict_keys[0]] = dict_val[0]
result[dict_keys[1]] = dict_val[1]
result[dict_keys[2]] = dict_val[2]
print(result)
Thanks for video 🙋♥️✍️📚.......😘
Maam jab haam actual code karenge toh haame kise pata chalega ki dictionary ya sets use karna
Imp timestamps
5:20
10:40
13:30
25:00
35:00
47:45
49:00
52:00
Respect and Love From Pakistan.
48:37
Marks = {}
Stu_marks = {str(input("subject: ")) : int(input(" Marks: ")),
str(input("subject: ")) : int(input(" Marks: ")),
str(input("subject: ")) : int(input(" Marks: "))}
Marks.update(stu_marks)
print(Marks)
This way is better or not?
Attendance in college ❌ attendance in apna college 😎✅
subject = {}
x =str(input("enter subject" ))
y =int(input("marks"))
subject.update({x:y})
x =str(input("enter subject" ))
y =int(input("marks"))
subject.update({x:y})
x =str(input("enter subject" ))
y =int(input("marks"))
subject.update({x:y})
print(subject)
Print(”Wonderful Session”)
33.22 what i understand is basically aak is pak ,pak is aak so akkpak
Didi I got a doubt
does this program work for dictionary,if not why?
dict={
input("enter subjects name "):float(input("enter the makrs for specified subject ")),
input("enter subjects name "):float(input("enter the makrs for specified subject ")),
input("enter subjects name "):float(input("enter the makrs for specified subject ")),
}
print(dict)
no. wrong syntax is being used. try using loops instead
class GreatTeacher(Exception):
def __init__(self, message="Inspiring, patient, and always ready to debug life's challenges!"):
super().__init__(message)
def compliment_teacher(teacher):
try:
if isinstance(teacher, GreatTeacher):
raise teacher
except GreatTeacher as gt:
print(f"Complimenting: {gt}")
teacher = GreatTeacher()
compliment_teacher(teacher)
maam dictionary is Orderd it never change the positon of key values like set .if it is unorderd why the position of key and value are same.
which sem bro?
@@adityaralhan1154 final year
WAP to get the values of marks of 3 subject from the user and store theme in dictionary with subject name and marks. Make sure that the dictionary is delcare as empty
---------
subject_and_marks = {}
subj1_marks = int(input("Enter subj1 marks"))
subj2_marks = int(input("Enter subj2 marks"))
subj3_marks = int(input("Enter subj2 marks"))
subject_and_marks["subj1"] = subj1_marks
subject_and_marks["subj2"] = subj2_marks
subject_and_marks["subj3"] = subj3_marks
print(subject_and_marks)
You are doing great job,please make full playlist of django after this
yes
Mam I have a doubt
After running the code why it is showing dict_keys on the console
Whereas the dictionary name is student
I think it should be student_keys TIME 18:48
Thank you madamji.. got notes too...
set1 ={"Python", "Java", "Java script","C++", "Python"}
set2 ={"Java", "Python", "Java", "C++","C"}
print(len(set1.intersection(set2)))