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
Post a Comment