Jak lze nahradit promenny string hodnout jine promenne?
# Promenne
i=1
TEST_1 = 10
TEST_2 = 20
# priklad 1 - nefunguje
¨TEST_2 + '_' + TEST_{i}¨.format(**locals())
¨TEST_2 + '_' + TEST_{i}¨.substitute(locals())
...(print) output - 20_10
# priklad 2 - nefunguje
B = ¨TEST_{i}¨.format(**locals()) print(B)
-> 10
...(print) output - 10