y = 0 mults = [2,7,6,5,4,3,2] for i in range(0,6): val = int(x[i]) * mults[i] y += val
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)