import math
#to calculate dielectric constant of the liquid
#capacitance of the air filled dielectric Cair=Q/Vo-----------eq(1)
#when dielectric is filled between the plates ,Cliquid=Q/V
#then Cliquid=epsilonr*Q/Vo------eq(2)
Vo=60
#voltage in volts
V=30
#from eq(1) and eq(2),we get
epsilon0=Vo/V
print "the dielectric constant of the liquid is epsilon0=",epsilon0,"unitless"
import math
#to calculate charge on the capacitance
epsilon0=8.854*10**-12 #permittivity
epsilonr=6 #relative permittivity
V=100 #voltage in volts
d=1.5*10**-3 #distance in m
A=4*10**-4#area in m**2
Q=epsilon0*epsilonr*A*V/d
print "the charge on the capacitance is Q=","{:.3e}".format(Q),"Coulomb"
import math
#to calculate voltage
A=6.50*10**-4 #area in m**2
Q=2*10**-10 #charge in C
d=4*10**-3 #plate separation in m
epsilon0=8.854*10**-12
epsilonr=3.5 #dielectric constant
V=Q*d/(epsilon0*epsilonr*A)
print "the resultant voltage across the capacitor is V=",round(V,3),"volt"