How to pass dictionary items as function arguments in python?

My code 1st file: data = {'school':'DAV', 'standard': '7', 'name': 'abc', 'city': 'delhi'} my_function(*data) 2nd file: my_function(*data): schoolname = school cityname = city standard = standard studentname = name in the above code, only keys of “data” dictionary were get passed to my_function(), but i want key-value pairs to pass. How to correct this ? … Read more

Java Equivalent to Python Dictionaries

I am a long time user of Python and really like the way that the dictionaries are used. They are very intuitive and easy to use. Is there a good Java equivalent to python’s dictionaries? I have heard of people using hashmaps and hashtables. Could someone explain the similarities and differences of using hashtables and hashmaps versus python’s dictionaries?