Okay.
As you see here, we are printing this result here and it is not more readable for the user.
Okay.
You may understand this that the user simple user, they are not going to understand this.
Okay.
They are because it is not very user friendly.
So the goal is to change this okay.
For example I want to print that this Mac address has this IP address.
And this Mac address has this IP, this Mac this IP and like that okay.
So and also it has some details that we really don't need to select.
So how can we bring some change to this.
So we can use it better.
So here we have answered and we have unanswered data.
These are I think lists.
Let's check that type of this.
Okay.
Let me check if it is list, then we can do some more detail.
Some more.
Uh.
Let's see.
Okay, so maybe it is list.
Okay then receive list.
So it is list.
Okay.
When it is list we can do a lot of things over this data.
The first thing is that we don't need an answer data because we are we never capture the answer that
is not received okay.
Or an answer data.
So here um when it is list.
So we have two things okay.
The first one is going to be the answer data.
The second one is going to be an answer data.
So I want to capture only the answer data.
So I remove the unanswered data okay.
now while I only want to receive one of them.
So I need to specify that I want to receive the first one.
And you know that the lists are indexed.
So we can specify that like this.
Okay.
So good.
Now I can use a for loop to go through and then and print each element or each packet or data of packet.
So let's use for element in answer.
Okay here I need to print the elements that I have here.
Okay.
For example I want to print the first element.
Okay.
If I want to print the first element what will be happen.
Or before that let's print just the element and let's see what do we have.
Okay.
Let me save this.
Or we can print the element dot Summary.
And let's see.
Okay.
No attribute summary.
No problem.
Let's just print the the element itself.
And.
Now let's.
Okay.
Very good.
Here you see we have uh query answer okay.
The first part okay.
We have a comma here okay.
So this is going to be the first index okay.
As you see it is destination f type are key.
And also we have this one okay.
How about this one okay.
It's also the same.
And this one also the same.
So as you see we don't need the first element.
So I want the second element which is the answer okay.
So here I want to print only the answer.
Let's come here and ask for the second one.
Okay.
If I give zero so that is the first one.
Then I ask for the second one.
Now let's go see.
What happened?
Now, just a moment.
Okay, now we have the same thing that we had before.
Okay, now I want to add one more thing.
Okay.
What was that?
It was P is rc.
Okay.
Let's use P is our C.
Let's save it.
Or we can use dot show.
Maybe it will give me more details.
If it is possible or if it has the method that is called show.
As you see we have that right here.
Okay.
So this is the first packet okay.
This is the second one and much more.
So here you see we have a lot of things that we can use it.
The first one is the IP address which is PSR c.
The second one is h w which is hardware destination or hardware source h w Isrc hardware source hardware
destination.
And these are the things that we really need okay to use.
So here instead of using the show method I am going to use PSR, C and let's use Ctrl D okay.
Ctrl c Ctrl v not really.
Ctrl okay.
Control C, control V.
And here the first one is PS RC.
The second one is going to be the hardware destination or hardware source.
So H, WD or RC or destination one of them.
No problem.
Now let's see what do we have?
Wow this is perfect But I need to have a print statement here so we can understand what we're doing.
Something like this.
Okay.
Perfect.
Now you see that this is the IP address.
And this is the Mac address for this IP address are the same here.
And also here we have the IP address.
We have the Mac address here.
Now it is a lot more better than the details that we had before something like this okay.
And also also we can improve this okay.
In a better way.
So we can change it to rows and columns and we can read it better.
Okay I will do that in the next lectures.
So let's go and see how we can do this and how we can learn a lot more from this course which is Python
course.