I want to avoid doing ugly int to each element in a list.
dictionary[l[0]] = [(int(l[1])+ int(l[2])+ int(l[3]))/3] #avg score of 3 grades
sub1 += int(l[1])
sub2 += int(l[2])
sub3 += int(l[3])
The list l has 4 elements, 0 to 3 indexes. I need to apply int starting with the 1st-element, not 0th element.
I'm trying to write something like:
map lambda x: int(x) for i in l[1:]
Do I need lambda here, since map can already do the job?