I am new to Python and I have the next questions in the below code line. Please help.
def method(self, a : dict) -> list:
- 1st question: what does it mean to declare a: dict?
- 2nd question: What does that arrow (-> list) means/indicates/represents?
To be honest I just have an idea about the first thing (a: dict), but I need the complete picture about how that way of writing that kind of python method works.
Thanks in advance.