Suppose I have some arrays initialized named as hi, bi, ci. Like in Perl we have this curly braces {} for interpolating strings inside the name of variable names. How to do it in python?
hi_name = []
bi_name = []
ci_name = []
temp = ["hi", "bi", "ci"]
for i in temp:
{i}_name.append("abc") # How to accomplish this in Python
print hi, bi, ci
Or Is there any Other way I can do the above thing?