I am new to Python and trying things out with psutil. After I get the IO counters from the function , it says that it returns a tuple but then why the returned result looks more like a dictionary ? I can get the data extracted as tuples but whats with the "Keys " listed for each value in this tuple ? How do I extract them ? for example what if I want to extract the string "bytes_sent" from the tuple? Also is this really a Tuple? I can see data enclosed in ( ).
psutil.net_io_counters()
snetio(bytes_sent=201965381, bytes_recv=571417944, packets_sent=1972681, packets_recv=3515998, errin=0, errout=0, dropin=0, dropout=0)
type (psutil.net_io_counters())
psutil._common.snetio
print result[0]
202031899