@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!
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
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 🥺🙏
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❤❤
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.
*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.*
# 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))
#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)
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)
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
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)
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)
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..........................
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.❤❤🎉😊🎉😊🎉😊
Mam ise badh please python dsa ki video.❤❤❤🎉🎉 TH-cam 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.❤❤❤❤🎉🎉🎉🎉
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)
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'}
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
marks = {} marks.update({str(input("Enter subject : ")) : int(input("Enter marks of subject : "))}) marks.update({str(input("Enter subject : ")) : int(input("Enter marks of subject : "))}) marks.update({str(input("Enter subject : ")) : int(input("Enter marks of subject : "))}) print(marks) i updated the following q 3
x = input("1st sub name: ") a = float(input("1st sub marks: ")) y = input("2nd sub name: ") b = float(input("2nd sub marks: ")) z = input("3rd sub name: ") c = float(input("3rd sub marks: ")) dict = {} dict[x] = a dict[y] = b dict[z] = c print(dict)
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
Mam last question me ham dict ke jagah values1= 9 And values2=9.0 Aur sum = (values1,values2) Print (sum) to (9 , 9.0) aajaega mam to ham direct ye nhi kar sakte if I have any mistake in this then reply me bcz I'm beginner in python 🙂
bcoz in dictionaries, the keys() function returns only the top-level keys, while the values() function returns all values, including those in nested dictionaries.
Fir the 3rd question can we use below code: Marks = {} Subject_1 = int(input(“Enter marks of English :”)) Subject_2 = int(input(“Enter marks of Math:”)) Subject_3 = int(“input (“Enter marks of Hindi:” )) Marks[“English”] = “subject_1” Marks[“Hindi”] = “subject_2” Marks [“math”] = “ subject_3” Print(marks)
Your method is correct. I've attached the corrected code below; please check it out: Marks = {} subject_1 = int(input("Enter marks of English: ")) subject_2 = int(input("Enter marks of Math: ")) subject_3 = int(input("Enter marks of Hindi: ")) Marks["English"] = subject_1 Marks["Math"] = subject_2 Marks["Hindi"] = subject_3 print(Marks)
progam to count the the nos of classes needed for each subject --------------- listOfSubjects = {"python","python","python", "java", "C++"} noOfClassRooms = len(listOfSubjects) print(noOfClassRooms)
Hi Shradha, Thank you for the series, its really helpful, the words spelled from your voice, is effective to place in our mind, but yes we have to do lots of practice. 2ndly Can you create a vision or direction towards IT-Admin switching to DevOps platform , for them how you will take the python as a scripting language, as a DevOps Admin, not like a developer/coder. Please create a video series on this.case studies or scenario based tutorials please, so the we can clear the basic concepts which is used in day to day life in companies (playing With AWS,Docker,K8 and a lot, for Automation). Waiting for it.
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
@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
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 ✅🗿🗿
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!!
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❤❤😂
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
THE good thing is that we have a good range of exercises at the end of the lecture. Thank you maam!
Shraddha is quite obsessed with her cgpa i.e. 9.4 , she be putting it everywhere
This python series is very helpful for me, thanks a lot team apnacollege for providing this wonderful series…..
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 ?
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
you are good because you are not wasting the time and going fast. Exactly this is I am looking for.
What a great way of teaching. Love from Pakistan.😍😍😍🥰😘
print("Best teacher ")
print("Thank you ma'am")
Thank You didi For your Amazing class....
i have become your Fan in only 3 classs....
Love from Bangladesh😍😍😍
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.
print("you are best best teacher ")😍🥰
*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.*
Out class no words to explain my feelings from Pakistan ❤❤❤❤lots of love Shraddha
love from Pakistan really such a beautiful way of teaching
# 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!
Thanks Dear
I started this course from lecture First
Best teacher ever i seen on TH-cam ❤
You are best teacher you make coding easier 😊
खपड़ा जी आप बहुत अच्छा पढ़ाती है
Thankyou
In Python, sets are mutable. This means you can modify a set after it is created, by adding or removing elements.
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))
#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
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?
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)
THANK YOU SO MUCH SHRADDHA DI.....THIS COURSE IS REALLY VERY HELPFUL.......PLEASE COVER ALL AREAS RELATED TO PYTHON...LOTS OF LOVE....🤗🤗❤❤❤❤
Yourr explanation is excellent mam♥️🙏.
Hatts of to ur efforts on making useful videos like this many more
Set ={}
Set.add =("physics: 67 ,")
Set.add =( "chemistry 65 ,)
Set.add = ("art 65 ,)
Print(set) 48:29
A = dict()
Table:"a peace of furniture ,"list of facts & figures"
Cat :"a small animal "
Print (dict(a))
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
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)
Thank you so much didi for your efforts 🙌👍✨.
Literally enjoyed via studying from you 😊.
I kindly request
PLEASE UPLOAD THE VIDEOS DAILY💛
😢😢😢
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
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
set={"python","java","c++","python","javascript","java","python","java","c++","c"}
len=len(set)
print("number of classrooms are", len)
Explanation is very good❤
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..........................
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)
Respect and Love From Pakistan.
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.❤❤🎉😊🎉😊🎉😊
Tq mam. Actually I am waiting for this video now day 🙏🙏
Too easy way to teach thanks a lot. :)
Mam ise badh please python dsa ki video.❤❤❤🎉🎉
TH-cam 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.❤❤❤❤🎉🎉🎉🎉
@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.
val = set()
num1 = 9
num2 = 9.0
val.add(num1)
val.add(num2)
print(val)
print(type(val))
not working
Really useful videos❤Thank you so much❤
We love your classes,
Please make video lecture on pygame development 😢
Its our request
Vote for lectures on pygame
👇
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)
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)
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'}
very good tutorial for students thank you sister❤❤
set1 ={"Python", "Java", "Java script","C++", "Python"}
set2 ={"Java", "Python", "Java", "C++","C"}
print(len(set1.intersection(set2)))
sub1 = input("subject 1 : " )
marks1= float(input("marks of sub1 : "))
sub2 = input("subject 2 : ")
marks2 = float(input("marks of sub 2 : "))
sub3 = input("subject 3 : ")
marks3 = float(input("marks of sub 3 : "))
dict ={}
dict.update({sub1 : marks1 })
dict.update({sub2 : marks2})
dict.update({sub3 : marks3})
print(dict)
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?
Thank you didi for 4 lecture -first comment
Ma'am,
Last vale Question(duration-50:10) ko ham *Union* set method ka use karke bhi kar sakte hai .
Nice Session Ma'am... Very Useful.
Thanks for your helpful lectures 😊
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
This IS veryyy wonderful session ma'am 🌼💖❣️
Incredible knowledge base, keep it up
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?
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?
33.22 what i understand is basically aak is pak ,pak is aak so akkpak
Ma'am for the last question I did this:
dict={(9,9.0)}
print(dict)
And I actually got the answer as {(9,9.0)}
So like is it fine
Print(”Wonderful Session”)
marks = {}
marks.update({str(input("Enter subject : ")) : int(input("Enter marks of subject : "))})
marks.update({str(input("Enter subject : ")) : int(input("Enter marks of subject : "))})
marks.update({str(input("Enter subject : ")) : int(input("Enter marks of subject : "))})
print(marks)
i updated the following q 3
🌼 Mata saraswati ap pe virajman h didi 🙏
x = input("table: ")
x1 = input("table: ")
y = input("cat: ")
list = [x, x1]
dict = {
"table": list,
"cat": y
}
print(dict)
dict = {
"class" : { "python", "java", "c++" , "python", "javascript", "java", "python", "java", "c++", "c"}
}
print(len(dict["class"]))
x = input("1st sub name: ")
a = float(input("1st sub marks: "))
y = input("2nd sub name: ")
b = float(input("2nd sub marks: "))
z = input("3rd sub name: ")
c = float(input("3rd sub marks: "))
dict = {}
dict[x] = a
dict[y] = b
dict[z] = c
print(dict)
x = str(9.0)
set = {x, 9}
print(set)
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
Imp timestamps
5:20
10:40
13:30
25:00
35:00
47:45
49:00
52:00
thank you so much di for zero cost super content ..
Thank you 🥰
42:50 : practice set
Thanks for video 🙋♥️✍️📚.......😘
wow very nice session thank you🤩
Thank you for this lecture
Mam last question me ham dict ke jagah values1= 9
And values2=9.0
Aur sum = (values1,values2)
Print (sum) to (9 , 9.0) aajaega mam to ham direct ye nhi kar sakte if I have any mistake in this then reply me bcz I'm beginner in python 🙂
mam for practice ques 1,can the ans be...table = {"a piece of furniture" : "list of facts n figures"} print(table),cat = {"a small animal"},print(cat)
mam can u pls tell me how to access vs code...my terminal doesnt work at all and my output is "nothing" pls help me mam....pls
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
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.
Thanks You Dii For this lecture ❤️
num1 = 9
num2 = 9.0
val = {
("int", num1),
("Float", num2)
}
print(val)
print(type(val))
Fir the 3rd question can we use below code:
Marks = {}
Subject_1 = int(input(“Enter marks of English :”))
Subject_2 = int(input(“Enter marks of Math:”))
Subject_3 = int(“input (“Enter marks of Hindi:” ))
Marks[“English”] = “subject_1”
Marks[“Hindi”] = “subject_2”
Marks [“math”] = “ subject_3”
Print(marks)
Your method is correct. I've attached the corrected code below; please check it out:
Marks = {}
subject_1 = int(input("Enter marks of English: "))
subject_2 = int(input("Enter marks of Math: "))
subject_3 = int(input("Enter marks of Hindi: "))
Marks["English"] = subject_1
Marks["Math"] = subject_2
Marks["Hindi"] = subject_3
print(Marks)
progam to count the the nos of classes needed for each subject
---------------
listOfSubjects = {"python","python","python", "java", "C++"}
noOfClassRooms = len(listOfSubjects)
print(noOfClassRooms)
Solved every question by myself 🤓
Value = {(9,9.0)}
print(Value)
I am from pakistan . I must appriciate your way of teaching
Hi Shradha, Thank you for the series, its really helpful, the words spelled from your voice, is effective to place in our mind, but yes we have to do lots of practice. 2ndly Can you create a vision or direction towards IT-Admin switching to DevOps platform , for them how you will take the python as a scripting language, as a DevOps Admin, not like a developer/coder. Please create a video series on this.case studies or scenario based tutorials please, so the we can clear the basic concepts which is used in day to day life in companies (playing With AWS,Docker,K8 and a lot, for Automation). Waiting for it.