2021年3月20日星期六

Python graph selecting values inside a list

Hello all how do I select just the first columns for this list so I only want to grab 1-11 and not the things inside the []

thank you!!

graph = {1: [9],

2: [3],

3: [4],

4: [6],

5: [6],

6: [8],

7: [2,8,9],

8: [11],

9: [],

10: [],

11: [10],

}

https://stackoverflow.com/questions/66729024/python-graph-selecting-values-inside-a-list March 21, 2021 at 01:04PM

没有评论:

发表评论