Python indexing a list -


i have list below: how do index in python. want fetch value "os"? please let me know.

[{'username': 'd699a1f25d9a3', 'browserversion': none, 'passwordminlength': 0, 'systemautolock': 0, 'os': 'windows 7 6.1 build 7601 : service pack 1 64bit'}] 

  mylist = [{'username': 'd699a1f25d9a3', 'browserversion': none, 'passwordminlength': 0, 'systemautolock': 0, 'os': 'windows 7 6.1 build 7601 : service pack 1 64bit'}]    os = mylist[0]['os']   print os 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -