venture of iit bombay vjti alumni the following code is invalid with tuplebecause we attempted to update tuplewhich is not allowed similar case is possible with lists #!/usr/bin/python tuple 'abcd' 'john' list 'abcd' 'john' tuple[ invalid syntax with tuple list[ valid syntax with list python dictionary python' dictionaries are kind of hash table type they work like associative arrays or hashes found in perl and consist of key-value pairs dictionary key can be almost any python typebut are usually numbers or strings valueson the other handcan be any arbitrary python object dictionaries are enclosed by curly braces (}and values can be assigned and accessed using square braces ([]for example #!/usr/bin/python dict {