JSON: python list > > > json Array
output / print | class type | usage | enter value | read one value | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
list | ['mycsvfile.csv', . . . . ] | type ( ) <class 'list'> | len( ) make list: list( ) constructor | mylist = ["apple", "cherry"] add value: mylist.append("orange") | mylist[0] print( mylist[0:2]) print( mylist[0:len(mylist)]) | |||||||
dictionary |
| type ( ) <class 'dict'> | mydict('keyX') | |||||||||