Python for Green Bean1
- windows
- linux
- check installed version of language and modules...
- print statement : seperator, : line endings : what returns?
- traceback reading : interpret source of error from provided traceback
- boolean and other condition check : condition evaluation
- basic math operations
:
+
,-
,*
,**
,//
,%
dir()
function
Note: all data structures in python3 are implemented as class but they are still treated as datatypes in python2
- string : slicing : manipulating : searching : other operations on string (upper, lower, check for alphabets, numeric, replace, etc)
- number : integer, float : decimal, fraction
- Boolean
- list : slicing : indexing : pop : append : search : sorting : addition : get max, min
- set : set v/s list : advantage? : list to set order preserve sorting
- tuple : list v/s tuple : sorting
- dictionary : advantage? : application : accessing key, value : sort by key/ value : add/update : searching
range()
functionin
keyword- if condition
- for loop
- while loop
- break, continue, pass and return statement
- list comprehension
- dict comprehension
- built in module import
- custom module import : import your own python file
- circular dependency
- read user input
- validate user input
- basic file operation read/write with simple text
- other file opening modes (
r
,rb
,w
,wb
,a
,a+
, etc.) and encoding (utf-8, ascii) - file operation image (just read and store)
- try and except block : try, except, else, finally
- using built in exception : ValueError, TypeError, ....
- creating custom exception
- improvise trace-back while writing custom exception
- handling and raising exception
__init__
- static method
- class method
- getter and setter
- Basic snippets (static)
- Dynamic snippets with user inputs
- improvise code with OOP
- Introduction into Threads
- Example for recursive Programming: Towers of Hanoi
- A Python Class for Polynomial Functions
- Python Network Scanner
- Finite State Machine in Python
- Turing Machine in Python