
February 3rd, 2013, 06:45 PM
|
|
Contributing User
|
|
Join Date: Nov 2012
Posts: 38
Time spent in forums: 7 h 18 m 33 sec
Reputation Power: 1
|
|
|
Save text data from JSON as a list
Hi, I'm struggling on how to save text which I loaded from JSON to a variable as a list.
I loaded data like this:
Code:
l =[]
for i in range (10):
l = results[i]['message']
The problem is when I check "l" it will show me only the last data of i which is 10. That means it print results[10]['message'] for me which is only 1 value (I need 10 of them)
Can anybody help me solve this problem, thank you so much.
P.S. Sorry that my question is at beginner level, but I have no idea now to deal with this.
|