 Now there is one thing to take note of with dictionaries if we're thinking about our inventory You know if I have an inventory We can use sort of the square brackets and our key So we could check in on all of our health potions this way. Oh, I'll Just call them health pots So we can use that method, but if there is no Entry for health pots or rather, you know, we're we're in a Shoot them up video game without magic. So if I attempted to look up My magic potions. Well, there's no magic in this world. So I would get in there and so one of the things that we can use instead is we can actually use a Function of our dictionary called it get now the entire idea to get is that if we were to sort of Do something like inventory Dot get the magic scroll It's still going to give us our value. It's no different than if we use the square brackets, but once again, it allows us to Handle when there are no values for a particular entry. So we have health potions. We have magic scrolls I'm switching up my Analogies, but let's say for example, I don't have any ammo because we're in a magic world now But not a shoot them up. Well, if I attempt to do Just to show it inventory ammo I'm gonna get an error because there is no ammo entry But this is where Got dot get can sort of mitigate that issue. So instead inventory dot get Well, it didn't crash and as you can see sort of going on there Oh, perfectly fine one thing that the dot get also allows for is Some form of a default can't find it response. So let's say for example. Oh, well, you know It's one of those weird magic shooting games things And I want to see, you know, I need to check ammo, but I may not have an entry for it Well, I can say here's the key and if that key it doesn't exist Just give me this value in our case zero Zero but once again if I came in and Said oh, well give me health potions again, I have an entry for health potions So this will get ignored and I will get my Three and there are a number of other functions that we can deal with with our Our dictionary just like the slide showed so I can come in with something like in dot keys And that's going to give me a list of all the known keys And this is pretty important if for some reason I want to traverse my dictionary because as you can see Yeah, it's currently got some weird stuff to this but We can convert that dictionary list of keys into an actual list using our data casting Approaches so in this case change that into a list and now we have those keys as a list