Казимагамедов Тагир 424 EvalFormulae 7122 | llilyshkall EvalFormulae 7414 | ||||
---|---|---|---|---|---|
f | 1 | import re | f | 1 | import re |
2 | 2 | ||||
3 | def evalform(formula, *args): | 3 | def evalform(formula, *args): | ||
t | 4 | return eval(formula, dict(zip(sorted(set(re.findall('[a-zA-Z]+', formula))), args))) | t | 4 | return eval(formula, dict(zip(sorted(set(re.findall('[a-z]+', formula))), args))) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|