#Variable declaration
lamda=0.708*10**-8# cm
h=6.625*10**-34# J*s Plank's constant
c=3.0*10**10# cm/s
e=1.6*10**-19# eV
#Calculations&Results
E=(h*c)/lamda# E=hv=hc/lamda
print "The value of E is %.2e J"%E
E=E/e
print "The value of E is %.2e eV"%E
#Variable declaration
m=9.11*10**-31# kg*m/s
v=10**5#m/s
h=6.625*10**-34#js
#Calculations&Results
p=m*v
print "momentum is %.2e"%p
lamda=h/p
print "de broglie wavelength in meter is %.2e"%(lamda)
import math
#Variable declaration
a=5*10**-10# a=5A = 5*10**-8cm
h=1.054*10**-34# J*s Planck's constant
m=9.11*10**-31# kg*m/s
e=1.6*10**-19# eV
#Calculations&Results
print "The energy levels are:"
for n in range(1,4):
En=((h**2*n**2*math.pi**2)/(2*m*a**2))/e
print "For n = %d, E = %.2f eV"%(n,En)