I have a list containing tuples with a standard format:
bar_list = [(bar1, bar2, bar3, bar4), (bar1, bar2, bar3, bar4), (bar1, bar2, bar3, bar4)...]
Though I want to iterate through each tuple in the list and for each make specific modifications such as:
foo0 = bar1
foo1 = get_foo(foo0) #get_foo(var) being a function
foo2 = bar2
foo3 = bar3/2
And then repackage the revalued tuples in another list:
foo_list = [(foo1, foo2, foo3), (foo1, foo2, foo3), (foo1, foo2, foo3)...]
How could I accomplish this?