I was working in Python and wondered if there was a to access the current list being built. Here is what I mean:
def foo():
return 10
def bar(baz):
return baz * 2
list = [foo(), bar(this_list[0])]
Notice this_list. The output should be 20 because foo returns 10, then is passed to bar which doubles it, getting 20. How could I do this?