Dictionary in Python
1
Why do we need Dictionary? (Why)
You can use a dictionary to look up the meaning of
any words that you don’t understand.
A good dictionary can help you understand your
subject better, improve your communication and
improve your grades by making sure you are using
words correctly.
2
Why do we need Dictionary in Python?
Dictionary in Python is an unordered collection of
data values, used to store data values like a map,
which, unlike other Data Types that hold only a single
value as an element, Dictionary holds key:value pair.
Key-value is provided in the dictionary to make it
more optimized.
3
What is a Dictionary in Python?
A dictionary is a collection which is ordered (As of
Python version 3.7, dictionaries are ordered. In
Python 3.6 and earlier, dictionaries are unordered),
changeable and does not allow duplicates
Dictionaries are used to store data values in key:value
pairs.
4
Creating a Dictionary in Python?
A Dictionary can be created by placing a sequence of
elements within curly {} braces, separated by
‘comma’.
Dictionary holds a pair of values, one being the Key
and the other corresponding pair element being
its Key:value.
Values in a dictionary can be of any data type and
can be duplicated, whereas keys can’t be repeated
and must be immutable.
5
Creating a dictionary in Python?
Creating an empty dictionary:
Dict = {}
print("Empty Dictionary: ")
print(Dict)
Output: Empty Dictionary: {}
6
Creating a dictionary in Python?
Creating an empty dictionary:
Dict = {}
print("Empty Dictionary: ")
print(Dict)
Output: Empty Dictionary: {}
7
Creating a dictionary in Python?
Creating an empty dictionary:
Dict = {}
print("Empty Dictionary: ")
print(Dict)
Output: Empty Dictionary: {}
8
Creating a dictionary in Python?
Creating an empty dictionary:
Dict = {}
print("Empty Dictionary: ")
print(Dict)
Output: Empty Dictionary: {}
9
Creating a dictionary in Python?
10
Nested dictionary?
Creg an empty dictionary:
Dict = {}
print("Empty Dictionary: ")
print(Dict)
Output: Empty Dictionary: {}
11
Create a nested dictionary in python?
Create a nested dictionary:
Dict = {1: 'Geeks', 2: 'For',
3:{'A' : 'Welcome', 'B' : 'To'}}
print(Dict)
Output: {{1: 'Geeks', 2: 'For', 3: {'A': 'Welcome',
'B': 'To'}}
12
Accessing a dictionary element?
You can access the items of a dictionary by referring to its
key name, inside square brackets:
thisdict = {"brand": "Ford", "model": "Mustang", "year": 1964}
x = thisdict["model"]
Output: Mustang
13
Accessing a dictionary element?
There is also a method called get() that will give you the same
result
thisdict = {"brand": "Ford", "model": "Mustang", "year": 1964}
x = thisdict.get("model“)
Output: Mustang
14
Methods .keys and .values in
dictionary?
15
Deleting a dictionary element?
del command can be used to del an element of
dictionary.
Example:
16
How to check if a dictionary has a
p particular key?
17
Operations on a dictionary?
18
Extracting a value from dictionary?
19
Add an item in a dictionary?
20
Changing a value in a dictionary?
21
Dictionary is a different from list?
22
Dictionary is a different from list?
23
Dictionary is a different from list?
24
Dictionary is a different from list?
25
Dictionary is a different from list?
26
Dictionary is a different from list?
27
Dictionary is a different from list?
28
Dictionary is a different from list?
29
Dictionary is a different from list?
30
Iterating through a dictionary?
31
Iterating through a dictionary?
32
Keys of dictionary can be sorted using sort() function.
Dictionary is a different from list?
33
Dictionary Methods?
34
Set in Python
35
Why do we need set in Python?
Set is one of 4 built-in data types in Python used to
store collections of data, the other 3
are List, Tuple, and Dictionary, all with different
qualities and usage.
36
What is a set in Python?
A set is a collection which is unordered,
unchangeable, and unindexed.
Set don’t allow duplicate values.
Set items can be of any data type.
37
How set is different from dictionary?
For a dictionary, hash tables store three elements:
hash, key, and value.
For a set, the difference is that there is no key-
value pairing in the hash table, only a single
element.
38
Creating a set in Python?
Sets are written in curly brackets {}.
Example:
thisset = {"apple", "banana", "cherry"}
print(thisset)
Output: {‘apple’, ‘banana’, ‘cherry’}
39
Creating a set in Python?
It is also possible to use the set() constructor to
make a set.
Example:
thisset = set(("apple", "banana", "cherry"))
print(thisset)
Output: {‘apple’, ‘banana’, ‘cherry’}
40
Accessing item from a set?
You cannot access items in a set by referring to an
index or a key. But you can loop through the set items
using a for loop, or ask if a specified value is present in
a set, by using the in keyword.
Example:
thisset = {"apple", "banana", "cherry"}
for x in thisset:
print(x)
Output: apple
banana
cherry
41
Accessing item from a set?
Use in keyword to check if specific element is present in
the set or not.
Example:
thisset = {"apple", "banana", "cherry"}
print("banana" in thisset)
Output: True
42
How to update a set?
Once a set is created, you cannot change its items, but
you can add new items
43
How to add an item in a set?
To add one item to a set use the add() method.
Example:
thisset = {"apple", "banana", "cherry"}
thisset.add("orange")
print(thisset)
44
Output: {"apple", “banana", “orange“,”cherry”}
How to add an item in a set?
To add items from another set into the current set, use
the update() method.
Example:
thisset = {"apple", "banana", "cherry"}
tropical = {"pineapple", "mango", "papaya"}
thisset.update(tropical)
print(thisset)
45
Output: {'apple', 'mango', 'cherry', 'pineapple',
'banana', 'papaya'}
How to remove an item in a set?
To remove an item in a set, use the remove(), or
the discard() method.
If the item to remove does not exist, remove() will raise
an error
Example:
thisset = {"apple", "banana", "cherry"}
thisset.remove("banana")
print(thisset)
46
Output: {‘apple’, ’cherry’}
How to remove an item in a set?
To remove an item in a set by using the discard() method.
If the item to remove does not exist, discard() will not
raise an error.
Example:
thisset = {"apple", "banana", "cherry"}
thisset.discard("banana")
print(thisset)
47
Output: {‘apple’, ’cherry’}
How to remove an item in a set?
You can also use the pop() method to remove an item, but
this method will remove the last item.
Remember that sets are unordered, so you will not know
what item that gets removed.
Example:
thisset = {"apple", "banana", "cherry"}
x = thisset.pop()
print(x)
print(thisset)
48
Output: apple
Output: {‘cherry’, ’banana’}
How to join two sets?
You can use the union() method that returns a new set
containing all items from both sets
Example:
set1 = {"a", "b" , "c"}
set2 = {1, 2, 3}
set3 = set1.union(set2)
print(set3)
49
Output: {'b', 3, 'c', 'a', 1, 2}
How to join two sets?
The update() method that inserts all the items from one
set into another.
Both union() and update() will exclude any duplicate
items.
Example:
set1 = {"a", "b" , "c"}
set2 = {1, 2, 3}
set1.update(set2)
print(set1)
50
Output: {'b', 2, 'c', 'a', 1, 3}
How to join two sets?
The intersection_update() method will keep only the items
that are present in both sets.
Example:
x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}
x.intersection_update(y)
print(x)
51
Output: {‘apple'}
Set methods?
Python has built-in methods that you can use on t
52
Set methods?
Python has built-in methods that you can use on t
53
Learning Objective
In this lecture, we learnt what is a
dictionary and set, why we need
dictionary and set, how to create and
write a dictionary and list in Python
and which operations we can perform
on dictionary and list.
54
Conclusion
● To store multiple data in programming, list is
used.
● With the help of dictionary and set methods
we can perform many operations on dictionary
and set.
● Built-In functins can also be used on
dictionary and set.
55
Self Assessment
Solve the Following Programs
1. Write a program to use the get method to print the
value of the "model" key of the car dictionary.
car = { "brand": "Ford", "model": "Mustang", "year":
1964 }
2. Write a program to change the “year” value from
1964 to 2021.
3. Write a program to add key/value pair “color”:red in
a car dictionary.
4. Write a program to use the pop method to remove
"model" from the car dictionary
56
Self Assessment
Solve Following Programs
1. Write a Program that takes two dictionaries and
returns true if they have at least one common
element.
57
Self Assessment
Solve Following Programs
1. Write a program to check if “apple” is present in
fruits set or not.
fruits = {“apple”,”banana”,”cherry”}
2. Write a program to add “orange” to the fruits set
given above.
3. Write a program to remove “banana” from a fruits
set.
58

More Related Content

PPTX
Untitled dictionary in python program .pdf.pptx
PPT
PE1 Module 4.ppt
PPTX
Python Dictionary concept -R.Chinthamani .pptx
PPTX
Lecture 3 intro2data
PDF
Python dictionaries
PPTX
Data Type In Python.pptx
PPTX
python programming for beginners and advanced
PDF
Python Interview Questions And Answers
Untitled dictionary in python program .pdf.pptx
PE1 Module 4.ppt
Python Dictionary concept -R.Chinthamani .pptx
Lecture 3 intro2data
Python dictionaries
Data Type In Python.pptx
python programming for beginners and advanced
Python Interview Questions And Answers

Similar to Week 10.pptx (20)

PDF
Python Viva Interview Questions PDF By ScholarHat
PPTX
Seventh session
PPTX
set.pptx
PPTX
Dictionaries and Sets in Python
PDF
Python for Everybody - Solution Challenge 2021
PPTX
Dictionaries and Sets in Python
PPTX
Understanding Python
PPTX
cover every basics of python with this..
PDF
A Gentle Introduction to Coding ... with Python
PPTX
Dictionaries in python
PDF
Python’s filter() function An Introduction to Iterable Filtering
PPTX
Python_Sets(1).pptx
PPTX
Dictionary in python Dictionary in python Dictionary in pDictionary in python...
PDF
XII CS QUESTION BANK FOR BRIGHT STUDENTS CHAPTER WISE SET-II.pdf
PDF
class 12 computer science pdf of class e
PDF
Python Collections Tutorial | Edureka
PDF
Collections in Python - Where Data Finds Its Perfect Home.pdf
PDF
Let’s Learn Python An introduction to Python
PDF
Python 101 1
PPTX
Dictionaries and Sets
Python Viva Interview Questions PDF By ScholarHat
Seventh session
set.pptx
Dictionaries and Sets in Python
Python for Everybody - Solution Challenge 2021
Dictionaries and Sets in Python
Understanding Python
cover every basics of python with this..
A Gentle Introduction to Coding ... with Python
Dictionaries in python
Python’s filter() function An Introduction to Iterable Filtering
Python_Sets(1).pptx
Dictionary in python Dictionary in python Dictionary in pDictionary in python...
XII CS QUESTION BANK FOR BRIGHT STUDENTS CHAPTER WISE SET-II.pdf
class 12 computer science pdf of class e
Python Collections Tutorial | Edureka
Collections in Python - Where Data Finds Its Perfect Home.pdf
Let’s Learn Python An introduction to Python
Python 101 1
Dictionaries and Sets
Ad

More from CruiseCH (6)

PPTX
Separation process-1 and Mass transfer slides
PPTX
5-JI HE DUOSHAO.pptx
PPTX
Purpose of Risk Assessment.pptx
PPTX
Week 11.pptx
PPTX
Updated Week 06 and 07 Functions In Python.pptx
PPTX
Engr.Jalal Saleem(ENVIRONMENTAL CRISES).pptx
Separation process-1 and Mass transfer slides
5-JI HE DUOSHAO.pptx
Purpose of Risk Assessment.pptx
Week 11.pptx
Updated Week 06 and 07 Functions In Python.pptx
Engr.Jalal Saleem(ENVIRONMENTAL CRISES).pptx
Ad

Recently uploaded (20)

PPTX
Computer Architecture Input Output Memory.pptx
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
Complications of Minimal Access-Surgery.pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
advance database management system book.pdf
PDF
Trump Administration's workforce development strategy
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Computer Architecture Input Output Memory.pptx
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Introduction to pro and eukaryotes and differences.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Complications of Minimal Access-Surgery.pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
advance database management system book.pdf
Trump Administration's workforce development strategy
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
LDMMIA Reiki Yoga Finals Review Spring Summer
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
AI-driven educational solutions for real-life interventions in the Philippine...
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Environmental Education MCQ BD2EE - Share Source.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα

Week 10.pptx

  • 2. Why do we need Dictionary? (Why) You can use a dictionary to look up the meaning of any words that you don’t understand. A good dictionary can help you understand your subject better, improve your communication and improve your grades by making sure you are using words correctly. 2
  • 3. Why do we need Dictionary in Python? Dictionary in Python is an unordered collection of data values, used to store data values like a map, which, unlike other Data Types that hold only a single value as an element, Dictionary holds key:value pair. Key-value is provided in the dictionary to make it more optimized. 3
  • 4. What is a Dictionary in Python? A dictionary is a collection which is ordered (As of Python version 3.7, dictionaries are ordered. In Python 3.6 and earlier, dictionaries are unordered), changeable and does not allow duplicates Dictionaries are used to store data values in key:value pairs. 4
  • 5. Creating a Dictionary in Python? A Dictionary can be created by placing a sequence of elements within curly {} braces, separated by ‘comma’. Dictionary holds a pair of values, one being the Key and the other corresponding pair element being its Key:value. Values in a dictionary can be of any data type and can be duplicated, whereas keys can’t be repeated and must be immutable. 5
  • 6. Creating a dictionary in Python? Creating an empty dictionary: Dict = {} print("Empty Dictionary: ") print(Dict) Output: Empty Dictionary: {} 6
  • 7. Creating a dictionary in Python? Creating an empty dictionary: Dict = {} print("Empty Dictionary: ") print(Dict) Output: Empty Dictionary: {} 7
  • 8. Creating a dictionary in Python? Creating an empty dictionary: Dict = {} print("Empty Dictionary: ") print(Dict) Output: Empty Dictionary: {} 8
  • 9. Creating a dictionary in Python? Creating an empty dictionary: Dict = {} print("Empty Dictionary: ") print(Dict) Output: Empty Dictionary: {} 9
  • 10. Creating a dictionary in Python? 10
  • 11. Nested dictionary? Creg an empty dictionary: Dict = {} print("Empty Dictionary: ") print(Dict) Output: Empty Dictionary: {} 11
  • 12. Create a nested dictionary in python? Create a nested dictionary: Dict = {1: 'Geeks', 2: 'For', 3:{'A' : 'Welcome', 'B' : 'To'}} print(Dict) Output: {{1: 'Geeks', 2: 'For', 3: {'A': 'Welcome', 'B': 'To'}} 12
  • 13. Accessing a dictionary element? You can access the items of a dictionary by referring to its key name, inside square brackets: thisdict = {"brand": "Ford", "model": "Mustang", "year": 1964} x = thisdict["model"] Output: Mustang 13
  • 14. Accessing a dictionary element? There is also a method called get() that will give you the same result thisdict = {"brand": "Ford", "model": "Mustang", "year": 1964} x = thisdict.get("model“) Output: Mustang 14
  • 15. Methods .keys and .values in dictionary? 15
  • 16. Deleting a dictionary element? del command can be used to del an element of dictionary. Example: 16
  • 17. How to check if a dictionary has a p particular key? 17
  • 18. Operations on a dictionary? 18
  • 19. Extracting a value from dictionary? 19
  • 20. Add an item in a dictionary? 20
  • 21. Changing a value in a dictionary? 21
  • 22. Dictionary is a different from list? 22
  • 23. Dictionary is a different from list? 23
  • 24. Dictionary is a different from list? 24
  • 25. Dictionary is a different from list? 25
  • 26. Dictionary is a different from list? 26
  • 27. Dictionary is a different from list? 27
  • 28. Dictionary is a different from list? 28
  • 29. Dictionary is a different from list? 29
  • 30. Dictionary is a different from list? 30
  • 31. Iterating through a dictionary? 31
  • 32. Iterating through a dictionary? 32 Keys of dictionary can be sorted using sort() function.
  • 33. Dictionary is a different from list? 33
  • 36. Why do we need set in Python? Set is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Tuple, and Dictionary, all with different qualities and usage. 36
  • 37. What is a set in Python? A set is a collection which is unordered, unchangeable, and unindexed. Set don’t allow duplicate values. Set items can be of any data type. 37
  • 38. How set is different from dictionary? For a dictionary, hash tables store three elements: hash, key, and value. For a set, the difference is that there is no key- value pairing in the hash table, only a single element. 38
  • 39. Creating a set in Python? Sets are written in curly brackets {}. Example: thisset = {"apple", "banana", "cherry"} print(thisset) Output: {‘apple’, ‘banana’, ‘cherry’} 39
  • 40. Creating a set in Python? It is also possible to use the set() constructor to make a set. Example: thisset = set(("apple", "banana", "cherry")) print(thisset) Output: {‘apple’, ‘banana’, ‘cherry’} 40
  • 41. Accessing item from a set? You cannot access items in a set by referring to an index or a key. But you can loop through the set items using a for loop, or ask if a specified value is present in a set, by using the in keyword. Example: thisset = {"apple", "banana", "cherry"} for x in thisset: print(x) Output: apple banana cherry 41
  • 42. Accessing item from a set? Use in keyword to check if specific element is present in the set or not. Example: thisset = {"apple", "banana", "cherry"} print("banana" in thisset) Output: True 42
  • 43. How to update a set? Once a set is created, you cannot change its items, but you can add new items 43
  • 44. How to add an item in a set? To add one item to a set use the add() method. Example: thisset = {"apple", "banana", "cherry"} thisset.add("orange") print(thisset) 44 Output: {"apple", “banana", “orange“,”cherry”}
  • 45. How to add an item in a set? To add items from another set into the current set, use the update() method. Example: thisset = {"apple", "banana", "cherry"} tropical = {"pineapple", "mango", "papaya"} thisset.update(tropical) print(thisset) 45 Output: {'apple', 'mango', 'cherry', 'pineapple', 'banana', 'papaya'}
  • 46. How to remove an item in a set? To remove an item in a set, use the remove(), or the discard() method. If the item to remove does not exist, remove() will raise an error Example: thisset = {"apple", "banana", "cherry"} thisset.remove("banana") print(thisset) 46 Output: {‘apple’, ’cherry’}
  • 47. How to remove an item in a set? To remove an item in a set by using the discard() method. If the item to remove does not exist, discard() will not raise an error. Example: thisset = {"apple", "banana", "cherry"} thisset.discard("banana") print(thisset) 47 Output: {‘apple’, ’cherry’}
  • 48. How to remove an item in a set? You can also use the pop() method to remove an item, but this method will remove the last item. Remember that sets are unordered, so you will not know what item that gets removed. Example: thisset = {"apple", "banana", "cherry"} x = thisset.pop() print(x) print(thisset) 48 Output: apple Output: {‘cherry’, ’banana’}
  • 49. How to join two sets? You can use the union() method that returns a new set containing all items from both sets Example: set1 = {"a", "b" , "c"} set2 = {1, 2, 3} set3 = set1.union(set2) print(set3) 49 Output: {'b', 3, 'c', 'a', 1, 2}
  • 50. How to join two sets? The update() method that inserts all the items from one set into another. Both union() and update() will exclude any duplicate items. Example: set1 = {"a", "b" , "c"} set2 = {1, 2, 3} set1.update(set2) print(set1) 50 Output: {'b', 2, 'c', 'a', 1, 3}
  • 51. How to join two sets? The intersection_update() method will keep only the items that are present in both sets. Example: x = {"apple", "banana", "cherry"} y = {"google", "microsoft", "apple"} x.intersection_update(y) print(x) 51 Output: {‘apple'}
  • 52. Set methods? Python has built-in methods that you can use on t 52
  • 53. Set methods? Python has built-in methods that you can use on t 53
  • 54. Learning Objective In this lecture, we learnt what is a dictionary and set, why we need dictionary and set, how to create and write a dictionary and list in Python and which operations we can perform on dictionary and list. 54
  • 55. Conclusion ● To store multiple data in programming, list is used. ● With the help of dictionary and set methods we can perform many operations on dictionary and set. ● Built-In functins can also be used on dictionary and set. 55
  • 56. Self Assessment Solve the Following Programs 1. Write a program to use the get method to print the value of the "model" key of the car dictionary. car = { "brand": "Ford", "model": "Mustang", "year": 1964 } 2. Write a program to change the “year” value from 1964 to 2021. 3. Write a program to add key/value pair “color”:red in a car dictionary. 4. Write a program to use the pop method to remove "model" from the car dictionary 56
  • 57. Self Assessment Solve Following Programs 1. Write a Program that takes two dictionaries and returns true if they have at least one common element. 57
  • 58. Self Assessment Solve Following Programs 1. Write a program to check if “apple” is present in fruits set or not. fruits = {“apple”,”banana”,”cherry”} 2. Write a program to add “orange” to the fruits set given above. 3. Write a program to remove “banana” from a fruits set. 58

Editor's Notes

  • #4: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #5: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #6: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #7: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #8: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #9: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #10: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #11: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #12: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #13: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #14: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #15: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #16: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #17: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #18: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #19: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #20: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #21: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #22: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #23: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #24: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #25: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #26: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #27: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #28: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #29: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #30: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #31: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #32: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #33: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #34: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #35: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #37: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #38: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #39: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #42: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #43: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #44: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #45: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #46: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #47: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #48: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #49: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #50: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #51: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #52: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #53: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #54: Programming sekhny ka maksad hia k ham apni real life problem computer ki madad sy solve ker sakhain. Ham apni roz mara zindagi main bhot sary decision conditions ki base per lyty hain jesy k Agr kal barish hoi to ham pick nick per jain gy Agr aaj school ki chuti hoi to main cartoon daikoun ga Or Agr kal mjy job mill gi to main aap ko party doun ga. In conditions ko programming main handel kerny k leay conditional structure use hoty hain.
  • #55: After this lecture, you shall be able to Explain why we need variables and what is their relation to the memory.
  • #56: Programming main decision making achieve kerny k leay conditional structure use hoty hain, comparision operator jisy ham double equal operator bhe bolyt hian 2 values ko compare kerny k leay use hota hia. Is k elawa if command main likhe jany wali condition ko ham Boolean expression bhe khety hain.