Last active
April 3, 2018 09:50
-
-
Save gahan9/65311b17afe9e108613996af2fed6b81 to your computer and use it in GitHub Desktop.
Python Course
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Python Course</title> | |
<link rel="stylesheet" href="https://stackedit.io/style.css" /> | |
</head> | |
<body class="stackedit"> | |
<div class="stackedit__left"> | |
<div class="stackedit__toc"> | |
<ul> | |
<li><a href="#python">Python</a></li> | |
<li><a href="#basic-level">Basic Level</a> | |
<ul> | |
<li><a href="#installation">Installation</a></li> | |
<li><a href="#basic-syntax">Basic Syntax</a></li> | |
<li><a href="#data-structures">Data Structures</a></li> | |
<li><a href="#flow-control">Flow Control</a></li> | |
<li><a href="#modules-and-imports">Modules and imports</a></li> | |
</ul> | |
</li> | |
<li><a href="#intermediate-level">Intermediate Level</a> | |
<ul> | |
<li><a href="#handle-user-inputs">Handle user inputs</a></li> | |
<li><a href="#file-inputoutput-handling">File Input/Output Handling</a></li> | |
</ul> | |
</li> | |
<li><a href="#advance-level">Advance Level</a> | |
<ul> | |
<li><a href="#error--exceptions">Error & Exceptions</a></li> | |
<li><a href="#others">Others</a></li> | |
</ul> | |
</li> | |
<li><a href="#classes-and-oop">Classes and OOP</a></li> | |
<li><a href="#exercise">Exercise</a></li> | |
</ul> | |
</div> | |
</div> | |
<div class="stackedit__right"> | |
<div class="stackedit__html"> | |
<h1 id="python">Python</h1> | |
<h1 id="basic-level">Basic Level</h1> | |
<h2 id="installation">Installation</h2> | |
<ul> | |
<li>windows</li> | |
<li>linux</li> | |
<li>check installed version of language and modules…</li> | |
</ul> | |
<h2 id="basic-syntax">Basic Syntax</h2> | |
<ul> | |
<li> | |
<dl> | |
<dt>print statement</dt> | |
<dd>seperator,</dd> | |
<dd>line endings</dd> | |
<dd>what returns?</dd> | |
</dl> | |
</li> | |
<li> | |
<dl> | |
<dt>traceback reading</dt> | |
<dd>interpret source of error from provided traceback</dd> | |
</dl> | |
</li> | |
<li> | |
<dl> | |
<dt>boolean and other condition check</dt> | |
<dd>condition evaluation</dd> | |
</dl> | |
</li> | |
<li> | |
<dl> | |
<dt>basic math operations</dt> | |
<dd><code>+</code>,<code>-</code>, <code>*</code>, <code>**</code>, <code>//</code>, <code>%</code></dd> | |
</dl> | |
</li> | |
<li><code>dir()</code> function</li> | |
</ul> | |
<h2 id="data-structures">Data Structures</h2> | |
<p>Note: all data structures in python3 are implemented as class but they are still treated as datatypes in python2</p> | |
<ul> | |
<li> | |
<dl> | |
<dt>string</dt> | |
<dd>slicing</dd> | |
<dd>manipulating</dd> | |
<dd>searching</dd> | |
<dd>other operations on string (upper, lower, check for alphabets, numeric, replace, etc)</dd> | |
</dl> | |
</li> | |
<li> | |
<dl> | |
<dt>number</dt> | |
<dd>integer, float</dd> | |
<dd>decimal, fraction</dd> | |
</dl> | |
</li> | |
<li>Boolean</li> | |
<li> | |
<dl> | |
<dt>list</dt> | |
<dd>slicing</dd> | |
<dd>indexing</dd> | |
<dd>pop</dd> | |
<dd>append</dd> | |
<dd>search</dd> | |
<dd>sorting</dd> | |
<dd>addition</dd> | |
<dd>get max, min</dd> | |
</dl> | |
</li> | |
<li> | |
<dl> | |
<dt>set</dt> | |
<dd>set v/s list</dd> | |
<dd>advantage?</dd> | |
<dd>list to set order preserve sorting</dd> | |
</dl> | |
</li> | |
<li> | |
<dl> | |
<dt>tuple</dt> | |
<dd>list v/s tuple</dd> | |
<dd>sorting</dd> | |
</dl> | |
</li> | |
<li> | |
<dl> | |
<dt>dictionary</dt> | |
<dd>advantage?</dd> | |
<dd>application</dd> | |
<dd>accessing key, value</dd> | |
<dd>sort by key/ value</dd> | |
<dd>add/update</dd> | |
<dd>searching</dd> | |
</dl> | |
</li> | |
</ul> | |
<h2 id="flow-control">Flow Control</h2> | |
<ul> | |
<li><code>range()</code> function</li> | |
<li><code>in</code> keyword</li> | |
<li>if condition</li> | |
<li>for loop</li> | |
<li>while loop</li> | |
<li>break, continue, pass and return statement</li> | |
<li>list comprehension</li> | |
<li>dict comprehension</li> | |
</ul> | |
<h2 id="modules-and-imports">Modules and imports</h2> | |
<ul> | |
<li>built in module import</li> | |
<li> | |
<dl> | |
<dt>custom module import</dt> | |
<dd>import your own python file</dd> | |
</dl> | |
</li> | |
<li>circular dependency</li> | |
</ul> | |
<h1 id="intermediate-level">Intermediate Level</h1> | |
<h2 id="handle-user-inputs">Handle user inputs</h2> | |
<ul> | |
<li>read user input</li> | |
<li>validate user input</li> | |
</ul> | |
<h2 id="file-inputoutput-handling">File Input/Output Handling</h2> | |
<ul> | |
<li>basic file operation read/write with simple text</li> | |
<li>other file opening modes (<code>r</code>, <code>rb</code>, <code>w</code>, <code>wb</code>, <code>a</code>, <code>a+</code>, etc.) and encoding (utf-8, ascii)</li> | |
<li>file operation image (just read and store)</li> | |
</ul> | |
<h1 id="advance-level">Advance Level</h1> | |
<h2 id="error--exceptions">Error & Exceptions</h2> | |
<ul> | |
<li> | |
<dl> | |
<dt>try and except block</dt> | |
<dd>try, except, else, finally</dd> | |
</dl> | |
</li> | |
<li> | |
<dl> | |
<dt>using built in exception</dt> | |
<dd>ValueError, TypeError, …</dd> | |
</dl> | |
</li> | |
<li>creating custom exception</li> | |
<li>improvise trace-back while writing custom exception</li> | |
<li>handling and raising exception</li> | |
</ul> | |
<h2 id="others">Others</h2> | |
<ul> | |
<li>decorators</li> | |
<li>iterators</li> | |
<li>generator</li> | |
<li>built in methods like : map, reduce, filter</li> | |
</ul> | |
<h1 id="classes-and-oop">Classes and OOP</h1> | |
<ul> | |
<li><code>__init__</code></li> | |
<li>static method</li> | |
<li>class method</li> | |
<li>getter and setter</li> | |
</ul> | |
<h1 id="exercise">Exercise</h1> | |
<ul> | |
<li>Basic snippets (static)</li> | |
<li>Dynamic snippets with user inputs</li> | |
<li>improvise code with OOP</li> | |
</ul> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment