I want to implement a HashMap in Python.
I want to ask a user for an input. Now, depending on his input I am retrieving some information from the HashMap. If the user enters a key of the HashMap, I would like to retrieve the corresponding value.
How do I implement this functionality in Python?
HashMap<String,String> streetno=new HashMap<String,String>();
streetno.put("1", "ABC");
streetno.put("2", "DEF");
streetno.put("3","GHI");
streetno.put("4","JKL");
streetno.put("5","MNO")