To find PWM:
dic = {1 : [0,0,True], 2 : [1,0,False], 3:[1,0,False], 4:[1,0,False], 5 : [1,0,False] ,6 : [1,0,False]}
a = dic.get(1)[2]
print(a)
You can add [index]
to find specific values.
2
solved access a value from a dictionary
To find PWM:
dic = {1 : [0,0,True], 2 : [1,0,False], 3:[1,0,False], 4:[1,0,False], 5 : [1,0,False] ,6 : [1,0,False]}
a = dic.get(1)[2]
print(a)
You can add [index]
to find specific values.
2
solved access a value from a dictionary