# wavelength of light
import math
#Variable Declaration
e=1.609*10**-19 # Charge of electron
eg=1.8 # energy band gap
E=e*eg
h=6.626*10**-34 # Planck's constant
c=3*10**8 # speed of light
#Calculation
lam=h*c/E
#Result
print('The wavelenth of light emitted from given LED is %.4f µm'%(lam*10**6))
# Band Gap of GaAsP
import math
#Variable Declaration
e=1.6*10**-19 # Charge of electron
h=6.626*10**-34 # planck's constant
c=3*10**8 # speed of light in m/s
lam=6751*10**-10 # wavelength of green light from mercury lamp
#Calculation
E=h*c/lam
E=E/e
#Result
print('The band gap of the given GaAsP is %.1f eV'%E)