Manoj Dixit commited on
Commit
38bc7e3
·
1 Parent(s): e7798c2

adding new notebook

Browse files
Files changed (1) hide show
  1. Example-Lesson4.ipynb +234 -0
Example-Lesson4.ipynb ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "metadata": {},
7
+ "outputs": [
8
+ {
9
+ "name": "stdout",
10
+ "output_type": "stream",
11
+ "text": [
12
+ "Hello, World!\n"
13
+ ]
14
+ }
15
+ ],
16
+ "source": [
17
+ "print(\"Hello, World!\")"
18
+ ]
19
+ },
20
+ {
21
+ "cell_type": "code",
22
+ "execution_count": 1,
23
+ "metadata": {},
24
+ "outputs": [
25
+ {
26
+ "name": "stdout",
27
+ "output_type": "stream",
28
+ "text": [
29
+ "¯\\_(ツ)_/¯\n"
30
+ ]
31
+ }
32
+ ],
33
+ "source": [
34
+ "print(\"¯\\_(ツ)_/¯\")"
35
+ ]
36
+ },
37
+ {
38
+ "cell_type": "code",
39
+ "execution_count": 2,
40
+ "metadata": {},
41
+ "outputs": [
42
+ {
43
+ "name": "stdout",
44
+ "output_type": "stream",
45
+ "text": [
46
+ "Hello, World!\n",
47
+ " It's great to be here!\n"
48
+ ]
49
+ }
50
+ ],
51
+ "source": [
52
+ "print(\"\"\"Hello, World!\n",
53
+ " It's great to be here!\"\"\")"
54
+ ]
55
+ },
56
+ {
57
+ "cell_type": "code",
58
+ "execution_count": 3,
59
+ "metadata": {},
60
+ "outputs": [
61
+ {
62
+ "data": {
63
+ "text/plain": [
64
+ "str"
65
+ ]
66
+ },
67
+ "execution_count": 3,
68
+ "metadata": {},
69
+ "output_type": "execute_result"
70
+ }
71
+ ],
72
+ "source": [
73
+ "type(\"Manoj\")"
74
+ ]
75
+ },
76
+ {
77
+ "cell_type": "code",
78
+ "execution_count": 4,
79
+ "metadata": {},
80
+ "outputs": [
81
+ {
82
+ "data": {
83
+ "text/plain": [
84
+ "str"
85
+ ]
86
+ },
87
+ "execution_count": 4,
88
+ "metadata": {},
89
+ "output_type": "execute_result"
90
+ }
91
+ ],
92
+ "source": [
93
+ "type(\"2.99\")"
94
+ ]
95
+ },
96
+ {
97
+ "cell_type": "code",
98
+ "execution_count": 5,
99
+ "metadata": {},
100
+ "outputs": [
101
+ {
102
+ "data": {
103
+ "text/plain": [
104
+ "int"
105
+ ]
106
+ },
107
+ "execution_count": 5,
108
+ "metadata": {},
109
+ "output_type": "execute_result"
110
+ }
111
+ ],
112
+ "source": [
113
+ "type(100)"
114
+ ]
115
+ },
116
+ {
117
+ "cell_type": "code",
118
+ "execution_count": 8,
119
+ "metadata": {},
120
+ "outputs": [
121
+ {
122
+ "name": "stdout",
123
+ "output_type": "stream",
124
+ "text": [
125
+ "1.628894626777442\n"
126
+ ]
127
+ }
128
+ ],
129
+ "source": [
130
+ "print (pow(1.05, 10))"
131
+ ]
132
+ },
133
+ {
134
+ "cell_type": "code",
135
+ "execution_count": 9,
136
+ "metadata": {},
137
+ "outputs": [
138
+ {
139
+ "name": "stdout",
140
+ "output_type": "stream",
141
+ "text": [
142
+ "The temperature 75F in degrees celsius is 23.88888888888889C\n"
143
+ ]
144
+ }
145
+ ],
146
+ "source": [
147
+ "print(f\"The temperature 75F in degrees celsius is {(75 - 32) * 5 / 9}C\")"
148
+ ]
149
+ },
150
+ {
151
+ "cell_type": "code",
152
+ "execution_count": 10,
153
+ "metadata": {},
154
+ "outputs": [
155
+ {
156
+ "name": "stdout",
157
+ "output_type": "stream",
158
+ "text": [
159
+ "The temperature 23.888C in Farehnite is 74.9984F\n"
160
+ ]
161
+ }
162
+ ],
163
+ "source": [
164
+ "print(f\"The temperature 23.888C in Farehnite is {(23.888 * 9 / 5) + 32}F\")"
165
+ ]
166
+ },
167
+ {
168
+ "cell_type": "code",
169
+ "execution_count": 11,
170
+ "metadata": {},
171
+ "outputs": [
172
+ {
173
+ "name": "stdout",
174
+ "output_type": "stream",
175
+ "text": [
176
+ "8 ounce of water is equal to 236.588ml\n",
177
+ "2000 ml of water is equal to 67.62811300657684ounce\n"
178
+ ]
179
+ }
180
+ ],
181
+ "source": [
182
+ "print(f\"8 ounce of water is equal to {8 * 29.5735}ml\")\n",
183
+ "print(f\"2000 ml of water is equal to {2000 / 29.5735}ounce\")\n"
184
+ ]
185
+ },
186
+ {
187
+ "cell_type": "code",
188
+ "execution_count": 13,
189
+ "metadata": {},
190
+ "outputs": [
191
+ {
192
+ "name": "stdout",
193
+ "output_type": "stream",
194
+ "text": [
195
+ "I am 45 years old and my height is 5.11 feet\n"
196
+ ]
197
+ }
198
+ ],
199
+ "source": [
200
+ "age = 45\n",
201
+ "height = 5.11\n",
202
+ "print(f\"I am {age} years old and my height is {height} feet\")"
203
+ ]
204
+ },
205
+ {
206
+ "cell_type": "code",
207
+ "execution_count": null,
208
+ "metadata": {},
209
+ "outputs": [],
210
+ "source": []
211
+ }
212
+ ],
213
+ "metadata": {
214
+ "kernelspec": {
215
+ "display_name": "Python 3",
216
+ "language": "python",
217
+ "name": "python3"
218
+ },
219
+ "language_info": {
220
+ "codemirror_mode": {
221
+ "name": "ipython",
222
+ "version": 3
223
+ },
224
+ "file_extension": ".py",
225
+ "mimetype": "text/x-python",
226
+ "name": "python",
227
+ "nbconvert_exporter": "python",
228
+ "pygments_lexer": "ipython3",
229
+ "version": "3.11.4"
230
+ }
231
+ },
232
+ "nbformat": 4,
233
+ "nbformat_minor": 2
234
+ }