1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
{
"metadata": {
"name": "",
"signature": "sha256:c86efa8d98a193b995064bd56ef312e9a7c9cee5247409d33d46defcf953f275"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 1 : Introduction to Programming"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 1.1, Page No 21"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"print \"Hello world\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Hello world\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 1.2, Page No 22"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"dblPrice = float(raw_input(\"Enter Price Per Unit : \"))\n",
"iNo = int(raw_input(\"Enter Quantity : \"))\n",
"dblTotal = dblPrice * iNo\n",
"print \"The Total Price Is : %d\" % dblTotal "
],
"language": "python",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"stream": "stdout",
"text": [
"Enter Price Per Unit : 100\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"stream": "stdout",
"text": [
"Enter Quantity : 10\n"
]
},
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The Total Price Is : 1000\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
|