Your help will be seriously appreciated
def test(passed):
    print(passed)
variable = []
for i in range(10):
    variable.append(lambda: test(i))
variable[4]()
expected result >>> 3
actual result >>> 0 
(same with any item in the "variable" list)
can someone please explain why and how (if possible) I can fix this?
 
    