Okay.
Here.
You see, while we execute this, we see a lot of send one packet here.
We need to handle this okay.
And handling that is very easy.
Let me clear this and let's go back here.
As you see here we have a function called send.
And we have an option for this.
That is the verbose okay.
Verbose is equal to.
False.
Now if I save it and execute this again you will see nothing.
Okay.
Right now the program is executing but the user is seeing nothing.
That is because we are not printing anything at all.
Let me cancel this and I'm back here.
Right here into the while loop.
I need to handle this.
Okay, here I'm going to use a counter.
So let's create a counter.
Let's name it send packet count send underscore packet count.
It is equal to zero.
Right now it is going to be equal to nothing okay means zero after we send two packets, we need to
update the app to update this.
Each time we send we need to implement this by two.
So here it is going to be send packet count is equal to send packet count plus two.
Okay.
Now it's time we send a packet to packet.
Okay one and two.
And each time this loop is finished uh it will increment this okay.
For example, the first time it sent two packet and come here and increment this by two.
And the second one and it moves and continues.
And also after that we can print a text here.
For example, uh how many packets have been sent.
So here very easy.
We can use print method here.
Let's use.
Something like this.
And we can say that how many packets and I could send.
Okay let's concatenate this with str.
And here we have the send packet count okay.
Now let's save it.
You may ask that why did you use str function here?
I already explained this for you because they sent packet.
It is a string and send packet count.
Here it is integer.
It contains integer inside this and string and also integer.
They both cannot be concatenated.
So we need to change the integer to string.
And then we can do concatenation.
Okay here let's re-execute this.
Now just a moment.
You see send to packet for packet six packet it packet ten packet.
And a lot of that okay.
So right now it is working also okay.
But it's not also very good because it is moving like this okay.
And I don't like this okay I want this to be static okay.
Not to get a new line.
In the first line I want to add this this number.
And also while I am canceling this, you see it is telling that Keyboardinterrupt didn't do a lot of
things.
So these are some error that we need to handle.
And also this text that is showing here needs to be in one line.
Okay.
Let's go and see if is it possible to do to handle it or not.