I want to calculate the average value of several lists in python. These lists contain numbers as strings. Empty string isn\'t zero, it means a missing value.
The be
In Python 3.4 use the statistics library:
from statistics import mean num = ['1', '2', '', '6'] ave = mean(int(n) if n else 0 for n in num)