Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6dffd4e

Browse files
Add files via upload
1 parent 435780c commit 6dffd4e

9 files changed

+4466
-0
lines changed

01-Variables.ipynb

Lines changed: 635 additions & 0 deletions
Large diffs are not rendered by default.

02-Strings.ipynb

Lines changed: 331 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,331 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {},
7+
"outputs": [
8+
{
9+
"data": {
10+
"text/plain": [
11+
"'hello world'"
12+
]
13+
},
14+
"execution_count": 1,
15+
"metadata": {},
16+
"output_type": "execute_result"
17+
}
18+
],
19+
"source": [
20+
"\"hello world\""
21+
]
22+
},
23+
{
24+
"cell_type": "code",
25+
"execution_count": 2,
26+
"metadata": {},
27+
"outputs": [
28+
{
29+
"data": {
30+
"text/plain": [
31+
"'hello'"
32+
]
33+
},
34+
"execution_count": 2,
35+
"metadata": {},
36+
"output_type": "execute_result"
37+
}
38+
],
39+
"source": [
40+
"'hello'"
41+
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": 6,
46+
"metadata": {},
47+
"outputs": [
48+
{
49+
"data": {
50+
"text/plain": [
51+
"\"i'm a pilot\""
52+
]
53+
},
54+
"execution_count": 6,
55+
"metadata": {},
56+
"output_type": "execute_result"
57+
}
58+
],
59+
"source": [
60+
"\"i'm a pilot\""
61+
]
62+
},
63+
{
64+
"cell_type": "code",
65+
"execution_count": 7,
66+
"metadata": {},
67+
"outputs": [],
68+
"source": [
69+
"x = \"hello world\""
70+
]
71+
},
72+
{
73+
"cell_type": "code",
74+
"execution_count": 8,
75+
"metadata": {},
76+
"outputs": [
77+
{
78+
"data": {
79+
"text/plain": [
80+
"'hello world'"
81+
]
82+
},
83+
"execution_count": 8,
84+
"metadata": {},
85+
"output_type": "execute_result"
86+
}
87+
],
88+
"source": [
89+
"x"
90+
]
91+
},
92+
{
93+
"cell_type": "code",
94+
"execution_count": 9,
95+
"metadata": {},
96+
"outputs": [],
97+
"source": [
98+
"x = \"hello\""
99+
]
100+
},
101+
{
102+
"cell_type": "code",
103+
"execution_count": 10,
104+
"metadata": {},
105+
"outputs": [
106+
{
107+
"data": {
108+
"text/plain": [
109+
"'hello'"
110+
]
111+
},
112+
"execution_count": 10,
113+
"metadata": {},
114+
"output_type": "execute_result"
115+
}
116+
],
117+
"source": [
118+
"x"
119+
]
120+
},
121+
{
122+
"cell_type": "code",
123+
"execution_count": 11,
124+
"metadata": {},
125+
"outputs": [],
126+
"source": [
127+
"x = 3"
128+
]
129+
},
130+
{
131+
"cell_type": "code",
132+
"execution_count": 12,
133+
"metadata": {},
134+
"outputs": [
135+
{
136+
"data": {
137+
"text/plain": [
138+
"3"
139+
]
140+
},
141+
"execution_count": 12,
142+
"metadata": {},
143+
"output_type": "execute_result"
144+
}
145+
],
146+
"source": [
147+
"x"
148+
]
149+
},
150+
{
151+
"cell_type": "code",
152+
"execution_count": 13,
153+
"metadata": {},
154+
"outputs": [],
155+
"source": [
156+
"x = \"hello world\""
157+
]
158+
},
159+
{
160+
"cell_type": "code",
161+
"execution_count": 14,
162+
"metadata": {},
163+
"outputs": [
164+
{
165+
"data": {
166+
"text/plain": [
167+
"str"
168+
]
169+
},
170+
"execution_count": 14,
171+
"metadata": {},
172+
"output_type": "execute_result"
173+
}
174+
],
175+
"source": [
176+
"type(x)"
177+
]
178+
},
179+
{
180+
"cell_type": "code",
181+
"execution_count": 15,
182+
"metadata": {},
183+
"outputs": [
184+
{
185+
"data": {
186+
"text/plain": [
187+
"11"
188+
]
189+
},
190+
"execution_count": 15,
191+
"metadata": {},
192+
"output_type": "execute_result"
193+
}
194+
],
195+
"source": [
196+
"len(x)"
197+
]
198+
},
199+
{
200+
"cell_type": "markdown",
201+
"metadata": {},
202+
"source": [
203+
"## length"
204+
]
205+
},
206+
{
207+
"cell_type": "code",
208+
"execution_count": 16,
209+
"metadata": {},
210+
"outputs": [
211+
{
212+
"data": {
213+
"text/plain": [
214+
"11"
215+
]
216+
},
217+
"execution_count": 16,
218+
"metadata": {},
219+
"output_type": "execute_result"
220+
}
221+
],
222+
"source": [
223+
"len(x)"
224+
]
225+
},
226+
{
227+
"cell_type": "code",
228+
"execution_count": 17,
229+
"metadata": {},
230+
"outputs": [
231+
{
232+
"name": "stdout",
233+
"output_type": "stream",
234+
"text": [
235+
"hello world\n"
236+
]
237+
}
238+
],
239+
"source": [
240+
"print(x)"
241+
]
242+
},
243+
{
244+
"cell_type": "markdown",
245+
"metadata": {},
246+
"source": [
247+
"## escape characters"
248+
]
249+
},
250+
{
251+
"cell_type": "code",
252+
"execution_count": 18,
253+
"metadata": {},
254+
"outputs": [
255+
{
256+
"name": "stdout",
257+
"output_type": "stream",
258+
"text": [
259+
"hello python\n"
260+
]
261+
}
262+
],
263+
"source": [
264+
"print(\"hello python\")"
265+
]
266+
},
267+
{
268+
"cell_type": "code",
269+
"execution_count": 22,
270+
"metadata": {},
271+
"outputs": [
272+
{
273+
"name": "stdout",
274+
"output_type": "stream",
275+
"text": [
276+
"hello \n",
277+
"python\n"
278+
]
279+
}
280+
],
281+
"source": [
282+
"print(\"hello \\npython\")"
283+
]
284+
},
285+
{
286+
"cell_type": "code",
287+
"execution_count": 23,
288+
"metadata": {},
289+
"outputs": [
290+
{
291+
"name": "stdout",
292+
"output_type": "stream",
293+
"text": [
294+
"hello \tpython\n"
295+
]
296+
}
297+
],
298+
"source": [
299+
"print(\"hello \\tpython\")"
300+
]
301+
},
302+
{
303+
"cell_type": "code",
304+
"execution_count": null,
305+
"metadata": {},
306+
"outputs": [],
307+
"source": []
308+
}
309+
],
310+
"metadata": {
311+
"kernelspec": {
312+
"display_name": "Python 3",
313+
"language": "python",
314+
"name": "python3"
315+
},
316+
"language_info": {
317+
"codemirror_mode": {
318+
"name": "ipython",
319+
"version": 3
320+
},
321+
"file_extension": ".py",
322+
"mimetype": "text/x-python",
323+
"name": "python",
324+
"nbconvert_exporter": "python",
325+
"pygments_lexer": "ipython3",
326+
"version": "3.6.4"
327+
}
328+
},
329+
"nbformat": 4,
330+
"nbformat_minor": 2
331+
}

0 commit comments

Comments
 (0)