view.py
variable = 'amount'
amount = 200
print(variable) #actual: 'amount' expected: 200
In such case, is it possible to use Variable Variable like PHP? in php, I could do
$variable = 'amount';
$amount = 200;
echo $$variable;
I know it might be not a good practice, but sometimes it could provide very powerful features.
Thanks.