Doubt on controlling led via python

i have doubt can we take a user input on changing the brightness of led using python and then i need help in creating a program which can take a random input in brightness of led between the values 0, 255 so that it creates a graph based on the brightness and randomly generated value.

friends if you have any idea on the above thought please do help me.
thank you

Yes,you can…by using the random function available in between 0 and 255.Plot a curve using boltcloud and plotgraph functions in js.And your required output is available.Hope this is helpful for you.

@malolanaravamuthan This might be helpful for you to generate a random number.

@dasariaravindh21 & @shoeb.ahmed thanks for your suggestions and reply