lightIntensity

import pymel as pm

#Create dialogue box
result = pm.promptDialog(
	title='Light intensity',
	message='Enter intensity:',
	button=['OK', 'Cancel'],
	defaultButton='OK',
	cancelButton='Cancel',
	dismissString='Cancel')

if result == 'OK':
	iIntensity = float(pm.promptDialog(query=True, text=True))

for x in pm.selected():
	x.intensity.set(iIntensity)

I wish to do something Great and Wonderful, but I must start by doing the little things like they were Great and Wonderful”
~ Albert Einstein