Certified Python Programmer – Professional ( CPP02 )

1. Basics Concepts :

This section involves the basic concepts of the variables and its importance. This also includes the compiler & interpreter knowledge with the different versions and its differences in python

  • Importance of PYTHONPATH and PATH Variable
  • Concepts of Compiler ,
  • Interpreter difference between them
  • Properties of python
  • version Difference

This sectio deals with how to declare , initialize , swap , reference the variables with same and different datatypes How syntactically it is different from other technologies. Spacing also called indentation concepts.

  • Declarataion
  • Initialization
  • Swapping
  • Inderirect referencing
  • type identification
  • Syntax
  • Indentation

Different type of operators present in the python and its usage. this section also deals with the some of the system functions such as print , input , int etc.

  • Arithmatic Operators [ + , – , * , / , % , // , ** ]
  • Comparision Operators [ > , < , >= , <= , == , != ]
  • Logical Operators [ and , or , not ]
  • Assignment Operators [ += , -= , *= , /= ]
  • Membership Operators [ in , not in ]
  • terenary Operators
  • print , input , int , float , type , str functions

Types of conditional statements , execution of the statements based on the boolean output of the conditional statements along with the importance of the indentation in python.

  •  if statement and its examples
  •  if-else statement
  •  Indentation and structure of the conditional statements.
  •  nested if , nested if-else
  •  if-elif-else and its importance

Loops are the part and parcel of the python, here we deal with the different types of loops with its implementations like for list type of input and conditional type of inputs.

  • importance of loops
  • types of loops
  • Finite and infinite loops
  • For loop or List input type loop
  • while loop or condition input type loop
  • loop control statements : pass , continue , Break

2. Python Data Types and System Defined functions:

This section of python comprises of the system related concepts like data types , system defined functions with practical implementations. System Module concept. how to import the system defined moduels and its uses.

  • Python Data types like Numbers , Strings , Lists , Tuples , Dictionaries etc
  • difference between Normal and module function eg math , random.

The functions which works on the number inputs are number functions. This section also comprise system defined number functions .

  •  abs , max , min
  •  math.ceil , math.floor , round,
  •  random functions lile : choice , shuffle , randrange , uniform

The functions which works on the string inputs are number functions. This section also comprise system defined string functions .

  • string operators like + , * , [] , [:] , in , not in
  • case related functions like capitalize , upper , lower , title , swapcase
  • max , min , len
  • ljust , rjust , center , lstrip , rstrip , strip
  • count , index , find , replace
  • split , join , startswith , endswith , reversed , sorted
  • validation functions like isalpha , isdigit , isalnum , isupper , islower

This section comprises of the list concepts such as operators and functions. List are the part and parcel when it comes dealing with files. This section also includes Indexing , creation , manipulation and deletion for the lists. practical implementations with files using lists.

  • List operators + , * , [] , [:] , in , not in
  • List fundtions like len , max , min
  • append , extend , index , insert , pop
  • deep copy and shallow copy
  • remove , sort , reverse
  • map , reduce , filter

Tuples are immutable list . Here we deal with the difference between lists and tuples . Importance of the tuples over the list, Indexing , access and deletion of the tuples.

  • tuple operators + , * , [] , [:] , in , not in
  • difference between list and tuple
  • tuple functions len , max , min , copy
  • map , reduce , filter

Here we know about the key – value pairs. Has concepts . User defined indexing and its importance over the system defined indexes used in lists and tuples along with the Dictionary operators and functions.

  • Difference between list and dictionary
  • dictionary operators like [] , in , not in
  • dictionary functions like len , keys , values , items ,
  • get , fromkeys , setdefault

3. User defined Concepts :

In the above section 2 we seen every function or modules used are system defined. This section mainly focuses on the user defined elements like user defined functions,types of the user defined fuctions and its importaance. Return statement. user defined modules how can user defined modules are imported etc.

This section consists of handilng the exceptions using try and except block. Importance of the word Exception and system defined exceptions. User defined exceptions its importance. assert statement.

  • try , except block
  • System defined exceotions
  • User defined exception
  • assert statement
  • finally block

This section is for ccreation , reading and writing of the files which are Ascii files , binary files etc except non ASCII files like pdf , excel files. Creation , deletion, Read , write and append operations in files .

  • file handlers
  • file functions like open , read , readline , readlines , write , writeline , writelines , close , seek , tell
  • file modes like r, w, a, r+, w+, a+, rb, wb, ab

here we deal with user defined fucntions its types based on how arguments passed. Importance of the return statement. -> difference between user defined and system defined functions

  • types of user defined functions like
  • Required and positional arguments
  • required and non positional Keyword arguments
  • default arguments
  • Variable length arguments

This section includes Importance of the user defined modules , use of __init__.py file. Also how to create a module using folder and also using the files. difference between import and from keywords.

  • import statement
  • from statement
  • difference between import and from statement
  • importance of __init__.py file
  • alias naming in python
  • Importing one python script in another

4. Advanced Concepts :

OOPS whose abbrevation is object oriented programming system. This section deals with the real time programming examples . Importance of objects , object methods , class methods difference between them . Importance of self keyword.

  • Class sstructure
  • importance of objects
  • class methods and object methods
  • Importance of self , __init__ , __name__ , __dict__, __str__ .
  • importance of hasattr(), type(), issubclass(), isinstance(), super() functions
  • class Variables and static variables

Regular expression is mainly used for the dynamic grepping or replacing of the data based on the pattern anchors.

  • pattern acchors
  • functions like match , search , findall , sub , compile

This section deals with using openpyxl module for excel file related tasks such -> How to open excel file in Read and Write and append mode -> difference between load_module and module function

  • Create excel file and add data dynamically in excel file
  • Read existing file and append data
  • Read data dynamically from excel file
  • Max_row , max_column and sheetnames functions

Database is a storage where we can store the data in the rows and columns. In this section we deal with the database concepts such as -> Use of the Mysql database

  • How to connect to the database using the connect method
  • Functions like cursor , execute , fetch , fetchall , close and its importance.
  • Control functions such as db.commit and db.rollback and its importance
  • How to eexecute the query in python and fetch the data.
  • This section deals with handling of the memory with respect to the variables.
  • Importance of iterators
  • list and tuple iterator
  • String Iterator
  • Next() function and its importance in iterators
  • differnce between yield and return statement
  • use and importance of the yield over return statement
  • What is decorator
  •  Importance and use of decorators

This section deals with the concept of threads which is called as parallel processing . -> what is threading and its importance -> functions like Thread , join , start

  • threading.main_thread()
  • threading.current_thread()
  • synchronus and asynchronus threads
  • Synchronization between threads
  • lock.acquire() and lock.release()
  • threading.Lock()
  • This module is responsible for sending emails
  • How top send the text email
  • How to send the HTML email
  • Adding attachments in the mail
  • Functions like SMTP , sendmail , quit() , MIMETEXT

This module contains the functions which are used to perform operating system related tasks.

  •  importing os module
  •  functions in os module like : access() , listdir() , mkdir() , makedirs() , rmdir() , removedirs()
  •  file functions such as remove() , rename() , copy() , chmod() , stat() -> link() , symlink() , readlink()
  •  environ , getenv() , setenv()