Coder Social home page Coder Social logo

mouizuddin / advanced-python Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 15 KB

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.

Python 100.00%
python-3 oops-in-python decorator generator static-method class-method exceptions

advanced-python's Introduction

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

advanced-python's People

Contributors

mouizuddin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.