Python code for led brightness

from boltiot import Bolt
device_id = “BOLTXXXXX”
mybolt = Bolt(api_key, device_id)
response = mybolt.analogWrite(‘0’, ‘10’)
print (response)

This is my code. Its not working.

Replace the X marks with your API Key and Bolt Device Id respectively

Hello aditi ! Replace this lines( api_key = “XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”
device_id = “BOLTXXXXX) with your API key which will get you in your bolt cloud > API section
& device Id which is also available on your bolt cloud account.