title
Tutorial 3- Python Sets, Dictionaries and Tuples
description
Hello All,
Welcome to the Python Crash Course. In this video we will see about python basics datatypes and operation
github url : https://github.com/krishnaik06/Machine-Learning-in-90-days
Support me in Patreon: https://www.patreon.com/join/2340909?
Connect with me here:
Twitter: https://twitter.com/Krishnaik06
Facebook: https://www.facebook.com/krishnaik06
instagram: https://www.instagram.com/krishnaik06
If you like music support my brother's channel
https://www.youtube.com/channel/UCdupFqYIc6VMO-pXVlvmM4Q
Buy the Best book of Machine Learning, Deep Learning with python sklearn and tensorflow from below
amazon url:
https://www.amazon.in/Hands-Machine-Learning-Scikit-Learn-Tensor/dp/9352135210/ref=as_sl_pc_qf_sp_asin_til?tag=krishnaik06-21&linkCode=w00&linkId=a706a13cecffd115aef76f33a760e197&creativeASIN=9352135210
You can buy my book on Finance with Machine Learning and Deep Learning from the below url
amazon url: https://www.amazon.in/Hands-Python-Finance-implementing-strategies/dp/1789346371/ref=as_sl_pc_qf_sp_asin_til?tag=krishnaik06-21&linkCode=w00&linkId=ac229c9a45954acc19c1b2fa2ca96e23&creativeASIN=1789346371
Subscribe my unboxing Channel
https://www.youtube.com/channel/UCjWY5hREA6FFYrthD0rZNIw
Below are the various playlist created on ML,Data Science and Deep Learning. Please subscribe and support the channel. Happy Learning!
Deep Learning Playlist: https://www.youtube.com/watch?v=DKSZHN7jftI&list=PLZoTAELRMXVPGU70ZGsckrMdr0FteeRUi
Data Science Projects playlist: https://www.youtube.com/watch?v=5Txi0nHIe0o&list=PLZoTAELRMXVNUcr7osiU7CCm8hcaqSzGw
NLP playlist: https://www.youtube.com/watch?v=6ZVf1jnEKGI&list=PLZoTAELRMXVMdJ5sqbCK2LiM0HhQVWNzm
Statistics Playlist: https://www.youtube.com/watch?v=GGZfVeZs_v4&list=PLZoTAELRMXVMhVyr3Ri9IQ-t5QPBtxzJO
Feature Engineering playlist: https://www.youtube.com/watch?v=NgoLMsaZ4HU&list=PLZoTAELRMXVPwYGE2PXD3x0bfKnR0cJjN
Computer Vision playlist: https://www.youtube.com/watch?v=mT34_yu5pbg&list=PLZoTAELRMXVOIBRx0andphYJ7iakSg3Lk
Data Science Interview Question playlist: https://www.youtube.com/watch?v=820Qr4BH0YM&list=PLZoTAELRMXVPkl7oRvzyNnyj1HS4wt2K-
You can buy my book on Finance with Machine Learning and Deep Learning from the below url
amazon url: https://www.amazon.in/Hands-Python-Finance-implementing-strategies/dp/1789346371/ref=sr_1_1?keywords=krish+naik&qid=1560943725&s=gateway&sr=8-1
🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY YOUTUBE CHANNEL
detail
{'title': 'Tutorial 3- Python Sets, Dictionaries and Tuples', 'heatmap': [{'end': 318.694, 'start': 298.804, 'weight': 0.866}, {'end': 865.078, 'start': 829.767, 'weight': 0.732}], 'summary': 'Tutorial covers python data structures, including sets, dictionaries, and tuples, emphasizing their significance for exploratory data analysis. it demonstrates working with python sets, explaining inbuilt functions and set operations such as union, intersection, and difference. additionally, it explains dictionaries in python, including characteristics, differences from sets, creating, iterating, updating keys, nested dictionaries, and indexing. the tutorial also covers tuples, emphasizing immutability and use cases, along with inbuilt functions like count and index.', 'chapters': [{'end': 126.245, 'segs': [{'end': 60.148, 'src': 'embed', 'start': 19.912, 'weight': 0, 'content': [{'end': 23.895, 'text': 'Again guys these data structures are important when you are doing exploratory data analysis.', 'start': 19.912, 'duration': 3.983}, {'end': 25.596, 'text': 'So you should have an idea about it.', 'start': 23.955, 'duration': 1.641}, {'end': 29.979, 'text': 'It is not necessary that you need to know all the inbuilt functions inside this.', 'start': 26.317, 'duration': 3.662}, {'end': 35.464, 'text': 'Definitely Google will be there to help you out but you should know how this particular data structure works.', 'start': 30.5, 'duration': 4.964}, {'end': 38.745, 'text': 'So, to begin with, if I want to create a set, what is a set?', 'start': 36.044, 'duration': 2.701}, {'end': 44.668, 'text': 'A set is an unordered collection data type that is iterable, mutable and has no duplicate elements.', 'start': 39.205, 'duration': 5.463}, {'end': 46.869, 'text': 'This is one of the most important property guys.', 'start': 44.708, 'duration': 2.161}, {'end': 51.691, 'text': 'Python sets classes represent the mathematical notion of a set.', 'start': 47.669, 'duration': 4.022}, {'end': 54.693, 'text': 'This is based on the data structure known as hash table.', 'start': 51.931, 'duration': 2.762}, {'end': 56.914, 'text': 'I hope you know about hash table.', 'start': 55.253, 'duration': 1.661}, {'end': 60.148, 'text': 'I think in your engineering days you may have heard about it.', 'start': 57.867, 'duration': 2.281}], 'summary': 'Understanding data structures like sets is important for exploratory data analysis. sets are iterable, mutable, and have no duplicate elements, representing the mathematical notion of a set using a hash table.', 'duration': 40.236, 'max_score': 19.912, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ19912.jpg'}, {'end': 112.651, 'src': 'embed', 'start': 82.273, 'weight': 2, 'content': [{'end': 89.135, 'text': 'In order to create sets, what you have to do is that you have to basically use flower braces.', 'start': 82.273, 'duration': 6.862}, {'end': 95.86, 'text': 'so suppose I write set underscore where and you just use a flower braces and you can provide any elements over here.', 'start': 89.135, 'duration': 6.725}, {'end': 100.863, 'text': 'so suppose I write 1, comma 2, comma 3, comma 4 right now over here.', 'start': 95.86, 'duration': 5.003}, {'end': 104.265, 'text': 'I know this is other my sets of elements of integer values.', 'start': 100.863, 'duration': 3.402}, {'end': 112.651, 'text': 'okay now, suppose, if I write 3 once again, if I execute it right and if I try to see what this variable is, set underscore where now,', 'start': 104.265, 'duration': 8.386}], 'summary': 'To create a set, use flower braces and provide elements, e.g., 1, 2, 3, 4, to form a set of integer values.', 'duration': 30.378, 'max_score': 82.273, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ82273.jpg'}], 'start': 0.009, 'title': 'Python data structures and sets', 'summary': 'Covers various data structures in python such as sets, dictionaries, nested dictionaries, and tuples, emphasizing their significance for exploratory data analysis. it also explains the properties of sets and their creation using python.', 'chapters': [{'end': 126.245, 'start': 0.009, 'title': 'Python data structures and sets', 'summary': 'Covers different types of data structures in python including sets, dictionaries, nested dictionaries, and tuples, highlighting the importance of understanding these for exploratory data analysis and explaining the properties of sets and how to create them using python.', 'duration': 126.236, 'highlights': ['Sets are an unordered collection data type that is iterable, mutable and has no duplicate elements, based on the data structure known as a hash table. Sets in Python are iterable, mutable, and have no duplicate elements, representing the mathematical notion of a set and based on the data structure known as a hash table.', 'The importance of understanding data structures for exploratory data analysis is emphasized, stressing the need to know the working of these structures and their properties. Emphasizes the importance of understanding data structures for exploratory data analysis, stressing the need to know how these structures work and their properties.', 'Creating sets in Python using flower braces and the set function, and the behavior of sets in handling duplicate elements. Explains the process of creating sets in Python using flower braces and the set function, as well as the behavior of sets in handling duplicate elements.']}], 'duration': 126.236, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ9.jpg', 'highlights': ['Sets in Python are iterable, mutable, and have no duplicate elements, representing the mathematical notion of a set and based on the data structure known as a hash table.', 'Emphasizes the importance of understanding data structures for exploratory data analysis, stressing the need to know how these structures work and their properties.', 'Explains the process of creating sets in Python using flower braces and the set function, as well as the behavior of sets in handling duplicate elements.']}, {'end': 348.901, 'segs': [{'end': 201.026, 'src': 'embed', 'start': 149.851, 'weight': 0, 'content': [{'end': 157.396, 'text': 'first of all, always remember, before learning any inbuilt function, see that how you can basically retrieve,', 'start': 149.851, 'duration': 7.545}, {'end': 161.139, 'text': 'how you can basically see the elements in the set.', 'start': 157.396, 'duration': 3.743}, {'end': 163.46, 'text': 'and again this is basically called as indexing.', 'start': 161.139, 'duration': 2.321}, {'end': 167.163, 'text': 'I will write it as indexing again.', 'start': 163.46, 'duration': 3.703}, {'end': 172.717, 'text': 'if I write set of var of 0, it does not support indexing.', 'start': 167.163, 'duration': 5.554}, {'end': 175.945, 'text': 'always remember that set does not support indexing.', 'start': 172.717, 'duration': 3.228}, {'end': 184.6, 'text': 'so instead, if I write set of Avengers, So this is not subscriptable also.', 'start': 175.945, 'duration': 8.655}, {'end': 188.081, 'text': 'So you cannot find out indexing in sets.', 'start': 184.98, 'duration': 3.101}, {'end': 193.303, 'text': "If you want to retrieve the elements, there will be different ways of retrieving it, which I'll be showing you.", 'start': 188.461, 'duration': 4.842}, {'end': 195.083, 'text': "So you don't have any indexing things.", 'start': 193.643, 'duration': 1.44}, {'end': 201.026, 'text': 'So if I want to add elements inside the set, there will be an inbuilt function called as add function.', 'start': 195.664, 'duration': 5.362}], 'summary': 'Sets do not support indexing. use add function to add elements.', 'duration': 51.175, 'max_score': 149.851, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ149851.jpg'}, {'end': 246.331, 'src': 'embed', 'start': 223.582, 'weight': 1, 'content': [{'end': 233.043, 'text': 'so if i write set underscore, var dot tab, see that there are a lot of functions like add copy, difference, difference, update, discard, intersection,', 'start': 223.582, 'duration': 9.461}, {'end': 234.484, 'text': 'intersection update.', 'start': 233.043, 'duration': 1.441}, {'end': 238.606, 'text': 'i hope you have heard of intersection and intersection update in maths.', 'start': 234.484, 'duration': 4.122}, {'end': 241.928, 'text': 'if you have learned about sets, you can basically find out.', 'start': 238.606, 'duration': 3.322}, {'end': 246.331, 'text': 'you can do an union, you can do an intersection instead of sets you can also do.', 'start': 241.928, 'duration': 4.403}], 'summary': 'Python offers various set functions like add, copy, difference, update, discard, intersection, and intersection update, which are useful in set operations.', 'duration': 22.749, 'max_score': 223.582, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ223582.jpg'}, {'end': 321.156, 'src': 'heatmap', 'start': 284.605, 'weight': 4, 'content': [{'end': 289.228, 'text': 'Here you can see when I do dot difference, it is not an update on set two.', 'start': 284.605, 'duration': 4.623}, {'end': 294.792, 'text': 'That basically means if I go and see my set two again.', 'start': 290.489, 'duration': 4.303}, {'end': 298.724, 'text': 'I will basically be finding all the elements like that.', 'start': 295.922, 'duration': 2.802}, {'end': 302.846, 'text': 'But after this difference, I need to update these values in my set two.', 'start': 298.804, 'duration': 4.042}, {'end': 307.909, 'text': 'So for that, I have an inbuilt function called as dot difference underscore update.', 'start': 303.206, 'duration': 4.703}, {'end': 313.372, 'text': 'Okay And when I do this and if I see my print set two, it is basically getting updated.', 'start': 308.229, 'duration': 5.143}, {'end': 316.233, 'text': 'Now, not only this guys, they are a lot of things.', 'start': 313.832, 'duration': 2.401}, {'end': 318.694, 'text': 'Okay They are something called an intersectional.', 'start': 316.393, 'duration': 2.301}, {'end': 321.156, 'text': 'So let me execute this and let me just go below.', 'start': 318.734, 'duration': 2.422}], 'summary': 'Demonstrates using dot difference underscore update function to update set two after finding elements not in set one.', 'duration': 36.551, 'max_score': 284.605, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ284605.jpg'}], 'start': 128.253, 'title': 'Working with python sets and set operations', 'summary': 'Demonstrates working with python sets, explaining their inbuilt functions such as adding elements, retrieving elements, and showcasing operations like union, intersection, and difference. it also covers the use of set operations in python, including finding the difference and intersection between sets, with an example of updating set values after the operations.', 'chapters': [{'end': 246.331, 'start': 128.253, 'title': 'Working with python sets', 'summary': 'Demonstrates working with python sets, explaining their inbuilt functions such as adding elements, retrieving elements, and showcasing operations like union, intersection, and difference.', 'duration': 118.078, 'highlights': ["Python sets do not support indexing, but offer inbuilt functions like add to add elements to the set. Python sets do not support indexing, and the 'add' function is used to add elements to the set.", 'Inbuilt functions of sets include add, copy, difference, update, discard, intersection, intersection update, union, and intersection operations. Sets offer various inbuilt functions such as add, copy, difference, update, discard, intersection, intersection update, union, and intersection operations.', 'The chapter explains the absence of indexing in Python sets and provides alternative methods for retrieving elements. The absence of indexing in Python sets is explained, along with alternative methods for retrieving elements.']}, {'end': 348.901, 'start': 246.331, 'title': 'Python set operations', 'summary': 'Covers the use of set operations in python, including finding the difference and intersection between sets, with an example of updating set values after the operations.', 'duration': 102.57, 'highlights': ['The chapter covers the use of set operations in Python, such as finding the difference and intersection between sets, with an example of updating set values after the operations.', "The difference operation in set 2 removes elements present in set 1, and the remaining elements in set 2 are updated using the 'difference_update' function.", "The intersection operation in set 2 displays the common elements with set 1, and the 'intersection_update' function can be used to update the elements in set 2 accordingly."]}], 'duration': 220.648, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ128252.jpg', 'highlights': ["Python sets do not support indexing, and the 'add' function is used to add elements to the set.", 'Sets offer various inbuilt functions such as add, copy, difference, update, discard, intersection, intersection update, union, and intersection operations.', 'The absence of indexing in Python sets is explained, along with alternative methods for retrieving elements.', 'The chapter covers the use of set operations in Python, such as finding the difference and intersection between sets, with an example of updating set values after the operations.', "The difference operation in set 2 removes elements present in set 1, and the remaining elements in set 2 are updated using the 'difference_update' function.", "The intersection operation in set 2 displays the common elements with set 1, and the 'intersection_update' function can be used to update the elements in set 2 accordingly."]}, {'end': 963.346, 'segs': [{'end': 399.867, 'src': 'embed', 'start': 349.512, 'weight': 0, 'content': [{'end': 352.315, 'text': 'And this is the intersection that you need to understand.', 'start': 349.512, 'duration': 2.803}, {'end': 354.176, 'text': 'Now, this was all about sets.', 'start': 352.915, 'duration': 1.261}, {'end': 357.599, 'text': 'I would please suggest you go and see other inbuilt function.', 'start': 354.537, 'duration': 3.062}, {'end': 359.621, 'text': 'Again, you need not remember it.', 'start': 358.06, 'duration': 1.561}, {'end': 361.323, 'text': 'Google is always there to help you out.', 'start': 359.721, 'duration': 1.602}, {'end': 364.886, 'text': 'Let us go ahead and try to see about dictionaries.', 'start': 362.704, 'duration': 2.182}, {'end': 371.251, 'text': 'Now, dictionary is a collection which is unordered and it is basically changeable.', 'start': 365.306, 'duration': 5.945}, {'end': 372.292, 'text': 'It can be indexed.', 'start': 371.291, 'duration': 1.001}, {'end': 375.115, 'text': 'In short, it has key value pairs.', 'start': 372.713, 'duration': 2.402}, {'end': 380.114, 'text': 'In order to define a dictionary you just have to use empty braces.', 'start': 376.491, 'duration': 3.623}, {'end': 387.098, 'text': 'Now, I have already told you, in sets also use this kind of braces, but inside this you have variables.', 'start': 380.634, 'duration': 6.464}, {'end': 388.559, 'text': 'you have items assigned.', 'start': 387.098, 'duration': 1.461}, {'end': 389.94, 'text': 'over there you have some items.', 'start': 388.559, 'duration': 1.381}, {'end': 399.867, 'text': 'Whereas in dictionary what you do is that you do not put items like this instead you will be putting the items somewhere like this.', 'start': 390.46, 'duration': 9.407}], 'summary': 'Understanding sets and dictionaries, using braces and key-value pairs, for data storage and retrieval.', 'duration': 50.355, 'max_score': 349.512, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ349512.jpg'}, {'end': 469.655, 'src': 'embed', 'start': 424.276, 'weight': 2, 'content': [{'end': 427.597, 'text': "I use the same curly braces and I'm giving the element.", 'start': 424.276, 'duration': 3.321}, {'end': 435.944, 'text': 'So if I go and see the type of this set underscore x, I go and see the type of this set underscore x.', 'start': 427.637, 'duration': 8.307}, {'end': 437.926, 'text': 'So you can see that it is basically a set.', 'start': 435.944, 'duration': 1.982}, {'end': 441.089, 'text': 'So that is a basic difference.', 'start': 439.067, 'duration': 2.022}, {'end': 443.17, 'text': 'In dictionary you have key value pairs.', 'start': 441.329, 'duration': 1.841}, {'end': 445.933, 'text': 'Whereas in set you just provide an element.', 'start': 443.471, 'duration': 2.462}, {'end': 452.498, 'text': 'Now after this what we do is that we will be creating a dictionary and this is a manual way of creating dictionaries.', 'start': 446.573, 'duration': 5.925}, {'end': 456.561, 'text': 'You also have an inbuilt function called as dict.', 'start': 452.978, 'duration': 3.583}, {'end': 459.244, 'text': 'So if you see over here I will give you an example.', 'start': 457.142, 'duration': 2.102}, {'end': 466.709, 'text': 'So if I type of, here you can see that it is a dictionary.', 'start': 460.077, 'duration': 6.632}, {'end': 469.655, 'text': 'By this you are basically creating an empty dictionary.', 'start': 466.95, 'duration': 2.705}], 'summary': 'Demonstration of creating sets and dictionaries using python, with an example of an empty dictionary being created.', 'duration': 45.379, 'max_score': 424.276, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ424276.jpg'}, {'end': 708.827, 'src': 'embed', 'start': 679.143, 'weight': 5, 'content': [{'end': 683.727, 'text': 'so whenever you append with the same key some values that will get overridden over here.', 'start': 679.143, 'duration': 4.584}, {'end': 688.53, 'text': 'This is the basic understanding of the indexing in dictionaries.', 'start': 684.787, 'duration': 3.743}, {'end': 694.115, 'text': "And remember, guys, most of the data sources that you'll be using, like MongoDB.", 'start': 689.371, 'duration': 4.744}, {'end': 701.341, 'text': 'after you are loading some JSON data, you have to convert that into dictionaries, because in MongoDB,', 'start': 694.115, 'duration': 7.226}, {'end': 704.043, 'text': 'most of your data is actually stored in key value pairs.', 'start': 701.341, 'duration': 2.702}, {'end': 708.827, 'text': 'So it is very, very necessary that you understand these all operations with respect to dictionaries.', 'start': 704.144, 'duration': 4.683}], 'summary': 'Understanding indexing in dictionaries is crucial for working with mongodb and json data.', 'duration': 29.684, 'max_score': 679.143, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ679143.jpg'}, {'end': 818.691, 'src': 'embed', 'start': 787.853, 'weight': 3, 'content': [{'end': 793.183, 'text': 'Similarly any nested dictionary, let it be how deep the nested dictionary may be.', 'start': 787.853, 'duration': 5.33}, {'end': 797.932, 'text': 'you will be able to just easily retrieve all the values with the help of indexing.', 'start': 793.183, 'duration': 4.749}, {'end': 800.056, 'text': 'That is most important thing to understand.', 'start': 798.332, 'duration': 1.724}, {'end': 803.621, 'text': 'Now similarly this was about dictionaries.', 'start': 800.939, 'duration': 2.682}, {'end': 804.942, 'text': 'I hope you got it guys.', 'start': 803.801, 'duration': 1.141}, {'end': 811.786, 'text': 'Again, there are lot of inbuilt functions inside dictionaries which you can basically again you need not remember it, guys,', 'start': 805.042, 'duration': 6.744}, {'end': 818.691, 'text': 'only understand indexing is the most important thing that you should know how indexing works.', 'start': 811.786, 'duration': 6.905}], 'summary': 'Easy retrieval of nested dictionary values using indexing, emphasizing the importance of understanding indexing.', 'duration': 30.838, 'max_score': 787.853, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ787853.jpg'}, {'end': 865.078, 'src': 'heatmap', 'start': 829.767, 'weight': 0.732, 'content': [{'end': 831.249, 'text': 'is another very important thing.', 'start': 829.767, 'duration': 1.482}, {'end': 834.735, 'text': 'guys, understand, tuple is not mutable.', 'start': 831.249, 'duration': 3.486}, {'end': 840.804, 'text': 'once you have actually defined a tuple, you cannot change the elements of a tuple.', 'start': 834.735, 'duration': 6.069}, {'end': 844.429, 'text': 'okay, so in this particular first statement, if you want to create an empty tuple,', 'start': 840.804, 'duration': 3.625}, {'end': 848.87, 'text': 'you are basically doing this and suppose I have defined one tuple over here.', 'start': 844.429, 'duration': 4.441}, {'end': 854.833, 'text': 'So this is Krish, Ankur and John and remember whenever you want to define a tuple you have to use round braces.', 'start': 849.19, 'duration': 5.643}, {'end': 857.174, 'text': 'Round opening and closing braces.', 'start': 855.834, 'duration': 1.34}, {'end': 865.078, 'text': 'So here it is my tuple if you want to and again as I said you any data structures you want to learn go and see that how an indexing works for this.', 'start': 857.634, 'duration': 7.444}], 'summary': 'Tuples are immutable, use round braces to define, indexing works for tuples.', 'duration': 35.311, 'max_score': 829.767, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ829767.jpg'}, {'end': 933.633, 'src': 'embed', 'start': 904.258, 'weight': 4, 'content': [{'end': 906.098, 'text': "The elements won't get replaced.", 'start': 904.258, 'duration': 1.84}, {'end': 908.119, 'text': 'You cannot support an item assignment.', 'start': 906.118, 'duration': 2.001}, {'end': 913.12, 'text': 'You can completely change the whole list, but not a single element.', 'start': 908.779, 'duration': 4.341}, {'end': 915.921, 'text': 'Usually tuples, you may be considering where it will be used.', 'start': 913.24, 'duration': 2.681}, {'end': 924.284, 'text': 'Guys, remember tuple will basically be used in such programs, in such application where the definition of an item is required just for one time.', 'start': 916.381, 'duration': 7.903}, {'end': 927.026, 'text': 'You cannot perform any operations on it.', 'start': 925.225, 'duration': 1.801}, {'end': 930.53, 'text': 'You can only replace that whole tuple in short.', 'start': 927.347, 'duration': 3.183}, {'end': 933.633, 'text': 'And by this you just have two inbuilt functions.', 'start': 931.571, 'duration': 2.062}], 'summary': 'Tuples cannot have item assignment, only whole list can be replaced; used for single-time item definition.', 'duration': 29.375, 'max_score': 904.258, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ904258.jpg'}], 'start': 349.512, 'title': 'Dictionaries and tuples in python', 'summary': 'Explains dictionaries in python, covering their characteristics and differences from sets. it also delves into creating dictionaries, iterating through keys and values, updating keys, nested dictionaries, and the importance of indexing. additionally, it covers tuples, emphasizing immutability and use cases, along with inbuilt functions like count and index.', 'chapters': [{'end': 445.933, 'start': 349.512, 'title': 'Understanding dictionaries in python', 'summary': 'Explains the concept of dictionaries in python, highlighting its key characteristics, such as being unordered, changeable, and having key-value pairs, and emphasizes the differences between sets and dictionaries.', 'duration': 96.421, 'highlights': ['Dictionaries in Python are collections that are unordered and changeable, and they consist of key-value pairs, such as car1: Audi, car2: BMW, car3: Mercedes Benz.', 'Sets in Python, on the other hand, are defined by using curly braces with elements inside, without key-value pairs.', 'The chapter emphasizes the difference between dictionaries and sets, where dictionaries contain key-value pairs while sets contain only elements.']}, {'end': 963.346, 'start': 446.573, 'title': 'Creating and understanding dictionaries and tuples', 'summary': 'Covers creating and understanding dictionaries, including manual creation and inbuilt functions, iterating through keys and values, updating keys, nested dictionaries, and the importance of indexing in retrieving values. it also delves into tuples, emphasizing their immutability, and their use cases, along with inbuilt functions like count and index.', 'duration': 516.773, 'highlights': ['Nested dictionaries can be easily accessed using indexing, regardless of their depth, emphasizing the importance of indexing in retrieving values from nested dictionaries. Nested dictionaries retrieval using indexing', 'Tuples are immutable, and item assignment is not supported, instead, the entire tuple can be replaced, with specific inbuilt functions like count and index available for use. Immutability of tuples and available inbuilt functions', 'The importance of understanding indexing in dictionaries and its relevance in data structures like MongoDB, emphasizing its significance in data manipulation. Significance of indexing in dictionaries, relevance in MongoDB', 'The chapter covers manual creation of dictionaries and their inbuilt functions, such as iterating through keys and values, updating keys, and the usage of for loops for dictionaries. Manual creation and inbuilt functions of dictionaries, usage of for loops']}], 'duration': 613.834, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/wlS_fWxIPyQ/pics/wlS_fWxIPyQ349512.jpg', 'highlights': ['Dictionaries in Python are collections that are unordered and changeable, consisting of key-value pairs.', 'Sets in Python are defined by using curly braces with elements inside, without key-value pairs.', 'The chapter emphasizes the difference between dictionaries and sets, where dictionaries contain key-value pairs while sets contain only elements.', 'Nested dictionaries can be easily accessed using indexing, emphasizing the importance of indexing in retrieving values from nested dictionaries.', 'Tuples are immutable, and item assignment is not supported, with specific inbuilt functions like count and index available for use.', 'The importance of understanding indexing in dictionaries and its relevance in data structures like MongoDB, emphasizing its significance in data manipulation.', 'The chapter covers manual creation of dictionaries and their inbuilt functions, such as iterating through keys and values, updating keys, and the usage of for loops for dictionaries.']}], 'highlights': ['Sets in Python are iterable, mutable, and have no duplicate elements, representing the mathematical notion of a set and based on the data structure known as a hash table.', 'Emphasizes the importance of understanding data structures for exploratory data analysis, stressing the need to know how these structures work and their properties.', 'Explains the process of creating sets in Python using flower braces and the set function, as well as the behavior of sets in handling duplicate elements.', "Python sets do not support indexing, and the 'add' function is used to add elements to the set.", 'Sets offer various inbuilt functions such as add, copy, difference, update, discard, intersection, intersection update, union, and intersection operations.', 'The absence of indexing in Python sets is explained, along with alternative methods for retrieving elements.', 'The chapter covers the use of set operations in Python, such as finding the difference and intersection between sets, with an example of updating set values after the operations.', "The difference operation in set 2 removes elements present in set 1, and the remaining elements in set 2 are updated using the 'difference_update' function.", "The intersection operation in set 2 displays the common elements with set 1, and the 'intersection_update' function can be used to update the elements in set 2 accordingly.", 'Dictionaries in Python are collections that are unordered and changeable, consisting of key-value pairs.', 'Sets in Python are defined by using curly braces with elements inside, without key-value pairs.', 'The chapter emphasizes the difference between dictionaries and sets, where dictionaries contain key-value pairs while sets contain only elements.', 'Nested dictionaries can be easily accessed using indexing, emphasizing the importance of indexing in retrieving values from nested dictionaries.', 'Tuples are immutable, and item assignment is not supported, with specific inbuilt functions like count and index available for use.', 'The importance of understanding indexing in dictionaries and its relevance in data structures like MongoDB, emphasizing its significance in data manipulation.', 'The chapter covers manual creation of dictionaries and their inbuilt functions, such as iterating through keys and values, updating keys, and the usage of for loops for dictionaries.']}