Python-os-and-filesystem exercise #2

Hi everyone, I’m currently working on the os-and-filesystem section and trying to solve the 2nd exercise problem.

my code is as follows:
image

The result is supposed to be like this:
[‘loans1.txt’, ‘loans2.txt’, ‘loans3.txt’]

{‘amount’: [100000.0, 200000.0, 628400.0, 4637400.0, 42900.0, 916000.0, 45230.0, 991360.0, 423000.0], ‘duration’: [36.0, 12.0, 120.0, 240.0, 90.0, 16.0, 48.0, 99.0, 27.0], ‘rate’: [0.08, 0.1, 0.12, 0.06, 0.07, 0.13, 0.08, 0.08, 0.09], ‘down_payment’: [20000.0, 0.0, 100000.0, 0.0, 8900.0, 0.0, 4300.0, 0.0, 47200.0]}

however, the result I have has always been like this:
[‘loans1.txt’, ‘loans2.txt’, ‘loans3.txt’]

{‘amount’: [100000.0, 200000.0, 628400.0, 4637400.0, 42900.0, 916000.0, 45230.0, 991360.0, 423000.0], ‘duration’: [100000.0, 200000.0, 628400.0, 4637400.0, 42900.0, 916000.0, 45230.0, 991360.0, 423000.0], ‘rate’: [100000.0, 200000.0, 628400.0, 4637400.0, 42900.0, 916000.0, 45230.0, 991360.0, 423000.0], ‘down_payment’: [100000.0, 200000.0, 628400.0, 4637400.0, 42900.0, 916000.0, 45230.0, 991360.0, 423000.0]}

Can anyone tell me what went wrong??

The scarcity of details in this question leads to only one conclusion: seems like you’ve used the same URL few times. The arrays have exactly the same values.