person2 (referred by their number) have talked in total ?
in the for loop (calls)
(before create t_durations (empty dict) outside the loop)
communication = line[0]+'#'+line[1]
t_durations[com] = t_durations.get(com, 0) + int(line[3])
Now find a way to sum up coms duration
ex
'3333#4444':55
'4444#3333':22
So duration between 3333 and 4444 => 77
Oh
Обсуждают сегодня