<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Python-3.4.3%2FC3%2FParsing-data%2FEnglish-timed</id>
		<title>Python-3.4.3/C3/Parsing-data/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Python-3.4.3%2FC3%2FParsing-data%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C3/Parsing-data/English-timed&amp;action=history"/>
		<updated>2026-04-21T21:30:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C3/Parsing-data/English-timed&amp;diff=47654&amp;oldid=prev</id>
		<title>Pratik kamble at 12:13, 31 May 2019</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C3/Parsing-data/English-timed&amp;diff=47654&amp;oldid=prev"/>
				<updated>2019-05-31T12:13:17Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:13, 31 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|First, let us understand, what is meant by '''parsing data'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|First, let us understand, what is meant by '''parsing data'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Parsing''' the '''data''' is reading data in text form.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|00:54&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is converted into a form which can be used for computations. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/ins&gt;'''Parsing''' the '''data''' is reading data in text form. It is converted into a form which can be used for computations. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pratik kamble</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C3/Parsing-data/English-timed&amp;diff=47653&amp;oldid=prev</id>
		<title>Pratik kamble: Created page with &quot;{| border= 1 | '''Time''' | '''Narration'''  |- | 00:01 | Welcome to the spoken tutorial on '''Parsing data'''.   |- | 00:06 | In this tutorial, we will learn to-   Split a'''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C3/Parsing-data/English-timed&amp;diff=47653&amp;oldid=prev"/>
				<updated>2019-05-31T12:06:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border= 1 | &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039; | &amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- | 00:01 | Welcome to the spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Parsing data&amp;#039;&amp;#039;&amp;#039;.   |- | 00:06 | In this tutorial, we will learn to-   Split a&amp;#039;&amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border= 1&lt;br /&gt;
| '''Time'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:01&lt;br /&gt;
| Welcome to the spoken tutorial on '''Parsing data'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:06&lt;br /&gt;
| In this tutorial, we will learn to- &lt;br /&gt;
&lt;br /&gt;
Split a''' string '''using a''' delimiter. '''&lt;br /&gt;
&lt;br /&gt;
Remove the leading, trailing and all '''whitespaces''' in a '''string''' and  &lt;br /&gt;
&lt;br /&gt;
Convert between different '''built-in datatypes''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|00:22&lt;br /&gt;
|To record this tutorial, I am using &lt;br /&gt;
&lt;br /&gt;
'''Ubuntu Linux 16.04''' operating system&lt;br /&gt;
&lt;br /&gt;
'''Python 3.4.3 '''and&lt;br /&gt;
&lt;br /&gt;
'''IPython 5.1.0'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:38&lt;br /&gt;
| To practice this tutorial, you should know how to use '''lists.'''&lt;br /&gt;
If not, see the relevant '''Python''' tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|00:49&lt;br /&gt;
|First, let us understand, what is meant by '''parsing data'''.&lt;br /&gt;
&lt;br /&gt;
'''Parsing''' the '''data''' is reading data in text form.&lt;br /&gt;
&lt;br /&gt;
It is converted into a form which can be used for computations. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:04&lt;br /&gt;
| Next we will learn about '''split() function.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:08&lt;br /&gt;
| '''split() function''' breaks up a larger '''string''' into smaller '''strings''' using a defined '''separator'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:15&lt;br /&gt;
| If no '''argument''' is specified, then '''whitespace''' is used as default '''separator'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:22&lt;br /&gt;
| Syntax is''': str dot split''' inside '''parentheses argument'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:29&lt;br /&gt;
| The '''split function''' '''parses''' a '''string''' and returns an '''array''' of '''tokens'''.&lt;br /&gt;
This is called '''string tokenizing'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:38&lt;br /&gt;
| Let us first open the '''terminal '''by pressing '''Ctrl+Alt+T '''keys simultaneously. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:46&lt;br /&gt;
| Type '''ipython3 '''and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:52&lt;br /&gt;
| Let us initialize the '''pylab package'''. Type '''percentage sign pylab '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:02&lt;br /&gt;
| From here onwards, please remember to press the '''Enter''' key after typing every command on the '''terminal'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:09&lt;br /&gt;
| Let us define a variable '''str1''' as '''string data type.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:14&lt;br /&gt;
| Type, '''str1 '''''is equal to inside double quotes''''' Welcome to '''''insert some '''whitespaces''', then''''' Python tutorials'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:24&lt;br /&gt;
| We can have any number of '''whitespaces '''between '''to '''and '''Python tutorials'''. &lt;br /&gt;
&lt;br /&gt;
But all the '''spaces''' are treated as one space. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:34&lt;br /&gt;
| Now, we are going to '''split''' this '''string''' on '''whitespace'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:38&lt;br /&gt;
| Type, '''str1 dot split '''open and close '''parentheses.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:44&lt;br /&gt;
| As we can see, we get a '''list''' of '''strings.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:48&lt;br /&gt;
| Let us take another example for '''split() function''' with '''argument'''. Type as shown. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:57&lt;br /&gt;
| Type, '''x dot split'' '''inside parentheses inside single quotes '''semicolon.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:04&lt;br /&gt;
| We get a '''list''' of '''strings''' separated by '''comma'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:08&lt;br /&gt;
| Pause the video.  Try this exercise and then resume the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:14&lt;br /&gt;
| Split '''x''' using '''space''' as '''argument'''. Is it same as splitting without an '''argument'''? &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:22&lt;br /&gt;
| Switch to the '''terminal''' for the solution. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:26&lt;br /&gt;
| Type '''b '''is equal to '''x dot split '''open and close '''parentheses'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:32&lt;br /&gt;
| Type ''' c '''is equal to '''x dot split '''inside  parentheses and inside single quotes '''space'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:41&lt;br /&gt;
| Type '''b '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:44&lt;br /&gt;
| Type''' c '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:47&lt;br /&gt;
| We can see that '''splitting''' without '''argument''' is same as giving '''space''' as '''argument.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:54&lt;br /&gt;
| Splitting the '''string''' without '''argument''' will split the '''string''' separated by any number of '''spaces'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:01&lt;br /&gt;
| And giving '''space''' as '''argument''' will split the sentence specifically on single '''whitespace'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:08&lt;br /&gt;
| Let us recall the variable '''str1'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:12&lt;br /&gt;
| Now, we will split this '''string''' without '''argument'''.  Type '''b''' is equal to '''str1 dot split '''open and close '''parentheses'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:24&lt;br /&gt;
| Type ''' c '''is equal to '''str1 dot split '''inside '''parentheses''' and inside single quotes '''space'''.''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:33&lt;br /&gt;
| Type '''b'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|04:36&lt;br /&gt;
| Type '''c'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|04:38&lt;br /&gt;
| As you can see, here '''b''' is not equal to '''c''' since '''c''' has '''whitespaces '''as entries, whereas '''b''' has only words'''.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:49&lt;br /&gt;
| Next we will learn about '''strip method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:53&lt;br /&gt;
| '''strip function''' removes all leading and trailing '''whitespaces''' in a '''string'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
| 04:59&lt;br /&gt;
|Let us define a '''string''' by typing '''unstripped '''is equal to inside double quotes '''space Hello world space'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:09&lt;br /&gt;
| Now to remove the '''whitespace''', type, '''unstripped dot strip''' open and close '''parentheses.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:18&lt;br /&gt;
| We can see that '''strip''' removes all the '''whitespaces''' in the beginning and at the end of the '''string'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:25&lt;br /&gt;
| After '''splitting''' and '''stripping''' we get a '''list''' of '''strings''' with leading and trailing '''spaces''' stripped off.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:32&lt;br /&gt;
| Now we shall look at converting '''strings''' into '''floats''' and '''integers'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:38&lt;br /&gt;
| Type, '''mark ''underscore'' str '''is equal to inside double quotes '''1.25 '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:46&lt;br /&gt;
| Note that '''1.25''' is a '''string''' and not a '''float''' as it is within double quotes.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:53&lt;br /&gt;
| Type, '''mark '''is equal to''' float '''inside '''parentheses mark underscore str'''. Here we are converting '''string''' to '''float'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:05&lt;br /&gt;
| Type '''type '''inside parentheses '''mark underscore str'''. This tells you the '''datatype''' of '''mark_str''' i.e. '''string.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:17&lt;br /&gt;
| Type '''type '''inside parentheses '''mark '''. This shows '''mark''' is a '''float datatype.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:26&lt;br /&gt;
| We can see that '''string''' is converted to '''float'''. Now we can perform '''mathematical operations''' on them. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|06:34&lt;br /&gt;
| Pause the video. Try this exercise and then resume the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:40&lt;br /&gt;
| What happens if you type, '''int''' inside parentheses inside double quotes '''1.25''' in the '''terminal'''?&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:48&lt;br /&gt;
| Switch to the '''terminal''' for the solution.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:52&lt;br /&gt;
| Type, '''int '''inside parentheses inside double quotes '''1.25'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:59&lt;br /&gt;
| We can see a '''ValueError.''' We cannot convert a '''string''' to '''integer''' directly.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:06&lt;br /&gt;
| Let us see the correct solution for this. Type '''dcml underscore str '''''is equal to inside double quotes''' 1.25.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:18&lt;br /&gt;
| Type '''flt '''is equal to''' float '''inside parentheses '''dcml underscore str.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:27&lt;br /&gt;
| Here we are converting the '''string''' into '''float '''as we cannot directly convert it into '''integer'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:34&lt;br /&gt;
| Type '''flt '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:37&lt;br /&gt;
| Type, '''number '''is equal to''' int '''inside parentheses '''flt'''. We are now converting '''float''' into '''integer'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:48&lt;br /&gt;
| Type '''number''' We got the output as '''integer'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:54&lt;br /&gt;
| This is how we should convert '''strings''' into '''floats''' and '''integers'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:59&lt;br /&gt;
| Next, we will use a data file to''' parse '''the''' data.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:04&lt;br /&gt;
| Let me open the file '''student underscore record.txt''' in text editor.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:10&lt;br /&gt;
| The file '''student underscore record.txt '''is available in the '''Code files''' link of this tutorial. &lt;br /&gt;
Please download it in your '''Home directory''' and use it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:22&lt;br /&gt;
| We will first '''read''' the '''file''' line by line and '''parse''' each '''record''' in this '''file'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:28&lt;br /&gt;
| It contains '''records''' of students and their marks in the '''State Secondary Board Examination'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:35&lt;br /&gt;
| It has 1 lakh 80 thousand lines of record. We are going to read it and process this '''data'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:43&lt;br /&gt;
| Each line in the '''file''' is a set of '''fields''' separated by '''semicolons'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:49&lt;br /&gt;
| Consider a sample record from this file. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|08:53&lt;br /&gt;
|The following are the '''fields''' in any given line. &lt;br /&gt;
&lt;br /&gt;
'''Region Code''' &lt;br /&gt;
'''Roll Number'''&lt;br /&gt;
'''Name'''&lt;br /&gt;
Marks of 5 subjects&lt;br /&gt;
Total marks&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:08&lt;br /&gt;
| Open a new text editor. Type the code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:14&lt;br /&gt;
| Let me explain this program.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:17&lt;br /&gt;
| We have already learnt '''for loop''' in earlier tutorial. The '''for loop''' will process the student '''record''' and split the fields of each '''record'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:28&lt;br /&gt;
| The math marks are then converted to '''float'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:32&lt;br /&gt;
| Then it is appended and stored as a '''list''' in a variable '''math underscore  marks underscore A '''for region code '''A'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:41&lt;br /&gt;
| Save the file as''' marks.py '''in the '''Home directory'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:48&lt;br /&gt;
| Switch to the '''terminal'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:51&lt;br /&gt;
| Execute the file with '''percentage sign run space marks.py.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:58&lt;br /&gt;
| Switch back to the editor. Now we have all the math marks for region '''A''' in the list '''math underscore marks underscore A'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:09&lt;br /&gt;
| Add the below lines to calculate the '''mean''' of math marks for region '''A'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:15&lt;br /&gt;
| For this, we just have to sum the math marks and divide by the length. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:21&lt;br /&gt;
| Note that the length will give the number of students in region '''‘A’'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:26&lt;br /&gt;
| Let us save the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:29&lt;br /&gt;
| Switch to the '''terminal'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:32&lt;br /&gt;
| Execute the file again with '''percentage sign run space marks.py.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:40&lt;br /&gt;
| Hence we got our final '''output'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:43&lt;br /&gt;
| Here the '''mean''' value for region '''A''' is calculated roughly for 1 lakh 80 thousand '''records'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:51&lt;br /&gt;
| This is how we '''split''' and read a huge '''data''' and perform '''computations''' on it. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:57&lt;br /&gt;
| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|11:01 &lt;br /&gt;
|In this tutorial, we learnt to,''' '''&lt;br /&gt;
&lt;br /&gt;
'''Tokenize''' a '''string''' &lt;br /&gt;
&lt;br /&gt;
'''Split''' a '''string''' separated by '''delimiters''' with '''split()''' '''function'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:11&lt;br /&gt;
|Remove '''whitespaces''' using the '''strip() function.'''&lt;br /&gt;
&lt;br /&gt;
Convert '''datatypes''' of numbers from one type to another&lt;br /&gt;
&lt;br /&gt;
'''Parse''' input '''data''' and perform computations on it. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:25&lt;br /&gt;
| Here are some self assessment questions for you to solve &lt;br /&gt;
&lt;br /&gt;
1. How do you split the string “Guido;Rossum;Python&amp;quot; to get the words?&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:36&lt;br /&gt;
| 2. What does int inside paranthesis inside double quotes 20.0 produce?&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:43&lt;br /&gt;
| And the answers -&lt;br /&gt;
&lt;br /&gt;
1. '''line.split''' inside '''parantheses''' inside single quotes '''comma'''&lt;br /&gt;
&lt;br /&gt;
2. '''int''' inside '''parantheses''' inside double quotes '''20.0''' will give an error, because converting a '''string''' directly into '''integer''' is not possible. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:03&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:07&lt;br /&gt;
| Please post your general queries on '''Python''' in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:12&lt;br /&gt;
| FOSSEE team coordinates the TBC project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:16&lt;br /&gt;
| Spoken Tutorial Project is funded by NMEICT, MHRD, Govt. of India. For more details, visit this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:27&lt;br /&gt;
| This is  from IIT Bombay signing off. Thanks for watching.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pratik kamble</name></author>	</entry>

	</feed>