Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = {key_1:val_1, key_2:val_2, key_3:val_3}
- c[key_1] # returns val_1, as in a dictionary
- c(1) # returns val_2, as in a list
- c{val_3} # returns (2, key_3) as in a sort of "indexed dictionary"
Add Comment
Please, Sign In to add comment