All right, in this video, we are going to look at these dictionaries, so these dictionaries are a
key value base, a base, and you have a key and the value assigned to the key, you can identify the
value using the key.
So it's use it for username and password and password and the hash, etc. If you want to bind to base
of values, you can use that first name and the value on the last name of the value.
So we are going to make sure this is equal to and this dictionary will be open and close of business.
And first, you need to have a key that is fashionable and you need to specific current.
And so the value that's my name is first name is Naggar.
And I want to add another key value that I want to put the because I'll comma and then it's Sarashina.
And I'm going to add the asset side that will be fine.
Now I want to add it and I'd say it's so current from day one.
So now my three aspects has been added.
Three key value-based.
This is the key for them and the value of the keys Naggar and that this is the key and this one is this
one.
And they edge control.
And let me add one more key.
That's just a number.
And these values can be anything, let's say three, three and four.
So I'm going to open this dictionary.
But on this.
So as you can see, all my elements of this dictionary has been printed and you can also specify the
length.
And tough dictionary to find the number of quivering peaks.
It is the there are four pets.
This one is, uh, these three and these four.
So currently we have got the number that is 240 Value-Based.
Since we have seen the loops we can trade over this dictionary using the loops, so I first specify
how to get the keys.
Only you can say the keys to get the only keys.
And if you run this, you'll get down to the first name, last name agent.
So only that left pancit are the keys are being printed.
And I can say instead of keys, I can say values, I mean dictionary values to get only the values of
this Luckies.
So as you can see the Nogoa sign.
And so these values have been printed.
So this is method to access only values.
So if you want to combine both of these keys and values, there is another matter called items.
It will combine these enterprize and it will create a list.
So as you can see, it has written for the key value pair as in table and then second key, very presentable
and so on.
And as a result.
So since this is written, we can edit rules so.
So this verdict, so first I want to say for you to reiterate, we don't really use it because it's
the starting is high.
So that's why in that case.
So this key's contents are the keys, and we will we will pass it up.
All right.
So is this where you can see the US?
Let me show you this one.
Let me set these comments.
So you can access this of them, using this, using the key, now we can type in here, the tough Fashloom
your good of.
So we got the first two, are you and we can also say it, we can access these elements using this case.
So you can also say, yes, Beketov three, because we have this key and we got the four so you can
access this where he's using this case.
So we will know Lupa our looked through all over this case and we get the virus so far right in the
keys for every key.
I'm going to get through this and bring this Dictaphone so I will get the first Naggar and say and sign
it from day one and four.
So let me run this.
And as you can see, we have got the very sprinter now.
So and lastly, we have got this.
So this is one way of iteration.
So if you want to trade over these items, so you need to know how to wear this here.
Let's say it.
Come on.
So these two indicate the syndicate are the values of the keys and the white indicates are the rarest
of items.
So in the first iteration, XPoint to this first name and he points to the Naga and in the second iteration,
the exponential rational and the way points to sinecures.
So here we can just say print X, uh, plus I can do some space.
But wait so we can we already know that we can concatenate things.
So let me run this.
And we have got the Fastnet Naggar and I'm sorry, but when it comes to it, it has it did not printed
it because there is an error, because this one is integer and we cannot happen to the string.
So that scenario right now, what we're going to do is we can convert this interesting string graphics.
You can switch, which are white to make it into the you know, we can concatenate these various non-liquid
on this now.
We will get our values and each one three, four.
And we also printed the dictionary and particularly at the rush.
So this is how you treat over the dictionary.
This is very easy way to declare items because you can clearly have access to the key and the values
are pretty.
And one more thing I want to show you is that you going to very, uh.
Uh, it's, uh, that Farmand.
So I want to switch with the entire thing, I want to say that's a key use and I need to speak to open
press and press and I want to see where these.
Open press, and now I want to print this, but we should have this open process.
I will print the camera.
It's come out right.
So what this means is I'm going to print the string, which contains these placeholders.
So these are copies, placeholders, and this value is going to be replaced by this X value because
this is the first placeholder and the first 36 and the second prints are this overrepresent and this
will be replaced with weight.
So on.
When the statement is getting executed, these two values will be put together.
And even though the Y is integer, it will be converted to sheet and it will be printed on this.
And you can see first for keys key.
Why do you use non-cyclical and keys it values to do so, even though 21 is integer.
In the previous print statement we got an error because we can't concatenate a string and integer.
So this is very neat and a good way of programming.
You need to format this and it will simply press the X values and values here so you can also remove
the item from there using this this decoder pop pop off in.
This is with the uh Keenum.
You want to Tebow.
Let's say I want to remove it so I can be model.
So now I'm going to report this before printing this keys and let me run this, and now you can see
there is no age here and there is no value for the state because we have to modise it.
And you can just preorder
you can demo every item and it'll be like blank dictionary.
As you can see, I think we have cleared the dictionary values and it is open.
So I think these are the major methods and techniques you operate with the dictionaries and these dictionaries
are also used in rare cases are also important like that are the key value picks.
So the term for this video, I hope you have understood.