Monitor the amount of data sent and received on your system in real-time.
import psutil
import time
while True:
net = psutil.net_io_counters()
print(f"Bytes Sent: {net.bytes_sent}, Bytes Received: {net.bytes_recv}")
time.sleep(5)
Helps understand network activity and detect unusual spikes.
Next Lesson →