Right L1.
In this lecture, we will learn how to change the items in a dictionary.
As we already know, politics in the ring is key.
Where do you pare?
If you want to change the value of specific item, then we can refer to his name.
Okay.
Let's see a concrete example.
For example, this is a clue.
The dictionary.
The already familiar face.
We want to change.
For example.
The 2.0.
The value.
And to the 3.0.
This is a screen.
I said that because there's a course.
But we won't change it to the plot.
3.0 We can do this.
We followed digged this dictionary thing.
We first to the price.
This is the key.
Sorry.
Here's a mistake.
And should it be simple?
They we change the price.
Equal to a 3.0.
Assign a new value to the price.
Think we print the North Texan.
Uh.
There's something wrong.
Here.
Also, this mistake was.
Was.
We?
You see, there's a lot of mistakes, in fact.
Here's comma.
Also a comma.
Yeah.
Be careful about these things.
That's correct.
Okay.
Let's just.
Right.
He our idol because this course we will use we use idol.
Yeah.
Fido is the burying.
The idea is very simple.
After this course, you can choose what you like.
Okay.
You.
It's one thing.
We?
Change the venue do.
By that he.
I think we're pregnant.
Painful study.
The steak scenery change.
Let's see.
We got tired, Papo.
Yeah.
Like this.
We changed the price to three.
They?
There's another way we can use the update method.
In fact, this method up this the dictionary with the items from the giving argument.
We still use these dictionary.
Thane.
We use a float dictionary we staked.
Update.
Update what?
The prices.
The key.
And the way I do that is pair.
Here we use the pair price.
And where do they reprint this dictionary?
Okay.
You just copy this.
Put.
These earned.
Here.
We just to use objective method.
The man third.
Here.
Maybe we changed it to four because of years or I guess three or they changed.
So random module.
Here's some aero.
Wallowed deep.
It's not defined.
Because here we use a float like here.
But my mistakes.
Change it.
Change it here.
No.
You'll see.
We change the price or 0.0.
Okay.
This is a lecture for next lecture.
We are learning how to add terms in the least.
I call said dictionary or this.
Complex data types.
Okay.
If you are ready, please go to the next lecture here then.