Oct-26-2019, 05:04 PM
(This post was last modified: Oct-26-2019, 05:04 PM by Gribouillis.)
engmoh Wrote:can i replace "i" to value of "i" immediately without getattr() functionNo. There is no special syntax to access an attribute which name is a variable's value. You may regret this but it's one of the many things that make the great consistency of the language and therefore its success. Python's designers prefer function calls over exotic syntactic constructs.