Skip to content

Commit 7a92ace

Browse files
committed
Final String Config
1 parent ddd04fd commit 7a92ace

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

String.ipynb

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,75 @@
292292
"c=\"{p} {q} \"\n",
293293
"print(c.format(p=a,q=b))"
294294
]
295+
},
296+
{
297+
"cell_type": "code",
298+
"execution_count": 23,
299+
"metadata": {},
300+
"outputs": [],
301+
"source": [
302+
"st = 'hello # my name is # Soumyadip'"
303+
]
304+
},
305+
{
306+
"cell_type": "code",
307+
"execution_count": 24,
308+
"metadata": {},
309+
"outputs": [
310+
{
311+
"data": {
312+
"text/plain": [
313+
"['hello ', ' my name is ', ' Soumyadip']"
314+
]
315+
},
316+
"execution_count": 24,
317+
"metadata": {},
318+
"output_type": "execute_result"
319+
}
320+
],
321+
"source": [
322+
"st.split('#')"
323+
]
324+
},
325+
{
326+
"cell_type": "code",
327+
"execution_count": 25,
328+
"metadata": {},
329+
"outputs": [
330+
{
331+
"data": {
332+
"text/plain": [
333+
"' my name is '"
334+
]
335+
},
336+
"execution_count": 25,
337+
"metadata": {},
338+
"output_type": "execute_result"
339+
}
340+
],
341+
"source": [
342+
"st.split('#')[1]"
343+
]
344+
},
345+
{
346+
"cell_type": "code",
347+
"execution_count": 27,
348+
"metadata": {},
349+
"outputs": [
350+
{
351+
"data": {
352+
"text/plain": [
353+
"True"
354+
]
355+
},
356+
"execution_count": 27,
357+
"metadata": {},
358+
"output_type": "execute_result"
359+
}
360+
],
361+
"source": [
362+
"'Soumyadip' in st"
363+
]
295364
}
296365
],
297366
"metadata": {

0 commit comments

Comments
 (0)