I get the following error for the print statements. What is incorrect about the dictionary?
Traceback (most recent call last):
File "/home/main.py", line 8, in
"enabled": true, NameError: name 'true' is not defined ...Program finished with exit code 1
Press ENTER to exit console.
gcblist =[
{
"band": "5",
"channel": 155,
"clients": 0,
"country": "United States",
"device": "wlan0",
"enabled": true,
"fbo": false,
"fbo_active": false,
"name": "5.0GHz",
"ssids": [
"TestWiFi"
],
"txpower": "30"
},
{
"band": "2.4",
"channel": 1,
"clients": 0,
"country": "United States",
"device": "wlan1",
"enabled": true,
"fbo": true,
"fbo_active": false,
"name": "2.4GHz",
"ssids": [
"TestWiFi"
],
"txpower": "30"
}
]
for item in gcblist:
print (item)
print (item['device'])