def avg(lst):
    return round(sum(lst) / len(lst), 2) if lst else 0.0
assert avg([10, 20, 30]) == 20.0
assert avg([]) == 0.0
print("SELF-TEST PASS")