Skip to content

Here in this section you’ll find Python code that teach you advanced concepts so you can be on your way to become a master of the Python programming language. After the intermediate-level you can start digging into these codes that will teach you advanced Python concepts and patterns.

Notifications You must be signed in to change notification settings

Mouizuddin/advanced-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advance Python

First Class Function : Treat function just like anyother object or variable

First-class function

  • A programming language is said to be First class function if it treats functions as First class citizens

First class citizens

to other entities, includes

  • assigned to a variable
  • returned from a function
  • include being passed as a argument

higher order functions : pass functions as arguments and return function as result of other function

Generator

  • Allows to create own iterator functions
  • And return a iterator object, not a single value
  • yield statement is used rather than a return statement

Generator functions allow you to declare a function that behaves like an

Decorator

  • is a design pattern in Python that allows a user to add new functionality to an existing object without modifying its structure
  • Follows functions first class concept

Exception

  • Program terminates as soon as it encounters an error

  • An error can be a syntax error or an exception.

  • The try and except Block: Handling Exceptions The try and except block,is used to catch and handle exceptions

  • Raising an Exception use raise keyword to throw an exception if a condition occurs The statement can be complemented with a custom exception.

  • The AssertionError Exception (given logic is true or false) We assert that a certain condition is met. If this condition turns out to be True,The program can continue. If the condition turns out to be False, you can have the program throw an AssertionError exception

About

Here in this section you’ll find Python code that teach you advanced concepts so you can be on your way to become a master of the Python programming language. After the intermediate-level you can start digging into these codes that will teach you advanced Python concepts and patterns.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages