summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrupti Kini2016-01-21 23:30:23 +0600
committerTrupti Kini2016-01-21 23:30:23 +0600
commitadee49b26142063171e1bc9a9b3ef39727b8a2aa (patch)
treea4e3eaa4c1f02b54303dd170438aeab69084671f
parentdd0283f58b9fd55e8286fd860e60e12ffe86c6f4 (diff)
downloadPython-Textbook-Companions-adee49b26142063171e1bc9a9b3ef39727b8a2aa.tar.gz
Python-Textbook-Companions-adee49b26142063171e1bc9a9b3ef39727b8a2aa.tar.bz2
Python-Textbook-Companions-adee49b26142063171e1bc9a9b3ef39727b8a2aa.zip
Added(A)/Deleted(D) following books
A sample_notebooks/NivethaChezhian/Sample_Notebook.ipynb
-rw-r--r--sample_notebooks/NivethaChezhian/Sample_Notebook.ipynb68
1 files changed, 68 insertions, 0 deletions
diff --git a/sample_notebooks/NivethaChezhian/Sample_Notebook.ipynb b/sample_notebooks/NivethaChezhian/Sample_Notebook.ipynb
new file mode 100644
index 00000000..d14818c1
--- /dev/null
+++ b/sample_notebooks/NivethaChezhian/Sample_Notebook.ipynb
@@ -0,0 +1,68 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:25987a4a9da0545d9c4c2518a85172c533cb91c125ae9df53acb145c94c690e6"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 2:Energy levels and energy bands"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Sec.2-3,Pg_no:40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#To calculate the number of photons per second\n",
+ "\n",
+ "#variable declaration\n",
+ "E=(12400.0/2537.0) #Energy per photon\n",
+ "p=0.05/(1.60*(10**(-19))) #power radiated\n",
+ "\n",
+ "#Calculation\n",
+ "n=p/E #number of photons per second\n",
+ "\n",
+ "#Result\n",
+ "print \"The number of photons per second is\",round(n,2),\"photons/sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The number of photons per second is 6.39364919355e+16 photons/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file