Skip to content
Advertisement

Tag: associative

Access data in python3 associative arrays

I’d like how to create and print associative arrays in python3… like in bash I do: In bash I can do echo “${array[“beta”,1]}” to access data to print “text2”. How can I define a similar array in python3 and how to access to data in a similar way? I tried some approaches, but none worked. Stuff like this: But I

Advertisement