Юань Дунлян, 523 Группа EvalFormulae 8505
Антон Щербаков, 523 EvalFormulae 7225
f1def evalform(formula, *args):f1def evalform(formula, *args):
n2    var_name = ''n2    id = ''
3    variables = set()3    variables = set()
4    for ch in formula:4    for ch in formula:
5        if ch.isalpha():5        if ch.isalpha():
n6            var_name += chn6            id += ch
7        else:7        else:
t8            if var_name:t8            if id:
9                variables.add(var_name)9                variables.add(id)
10            var_name = ''10            id = ''
11    if var_name:11    if id:
12        variables.add(var_name)12        variables.add(id)
13    values = dict(zip(sorted(variables), args))13    values = dict(zip(sorted(variables), args))
14    return eval(formula, values)14    return eval(formula, values)
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op