I'm new in Python, and didn't find previous questions that describe the issue I'm asking for. Thank you.
1) My first question is, why the type that I get here is not a real List ? (the [ ] in the output, looks like a list but it's not, as you can see in the line below).
2) How can I convert the values in this 'dict_values' to integers inside a List (to make some calculations later) ?
print(list(node_list[j].neighbors.values()))
print(type(node_list[j].neighbors.values()))
The output is:
[10, 20, 20, 5, 10]
<class 'dict_values'>