I am newbie, just learning python and wandering how to get char that i get from for loop as variable name and not actual char
i have 3 arrays
a=[1,2,3]
b=[2,3,4]
c=[3,4,5]
and for loop
for x in "abc":
some_function(x)
for example this is my function...
def some_function(array):
print(sum(array))
but it doesn't work... i want x to be 'a' but not as char, but as a variable a , array, that ill give to my function and do something