Giter Site home page Giter Site logo

ch-sriram / python-advanced-concepts Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 35 KB

Proof of concept: Implementation of advanced python concepts

License: MIT License

Python 100.00%
python3 oop decorator-pattern generators dunder-methods args kwargs

python-advanced-concepts's Introduction

Python โ€” Advanced Concepts

This repository is a proof of concept that I know how to read/write code in Python. I will also use this repository to revise some of the harder concepts in Python (like Generators and Decorators). Feel free to contribute to the repository if you feel like there are some concepts that need to be added into the repository.

Table of Contents

  1. Miscellaneous Concepts:

    1. *args & **kwargs: args_kwargs.py
    2. Closures in Python using nonlocal keyword: closure_nonlocal.py
  2. Object Oriented Programming:

    1. Defining classes: class.py
    2. Defining class, __init__ & objects: objects.py
    3. Difference between Class Object Attributes & Instance Attributes: attr_method.py
    4. @classmethod and @staticmethod in a class: decorator_class.py
    5. Inheritance of classes: inheritance.py
    6. Polymorphism: polymorphism.py
    7. Calling super class' constructor using super() and Object Introspection using dir(): super.py
    8. Operator Overloading & Function Overriding using Dunder/Magic Methods: dunder.py
    9. Making your own list objects using inheritance: super_list.py
  3. Functional Programming:

    1. Pure functions and map() function: map.py
    2. The filter() function: filter.py
    3. The zip() function: zip.py
    4. Using the reduce() function from functools: reduce.py
    5. Exercise on map(), filter() & reduce(): exercise_1.py
    6. Anonymous function definitions using lambda expressions: lambda.py
    7. Exercise on lambda expressions: exercise_2.py
    8. list comprehensions: list_comprehensions.py
    9. set and dict comprehensions: set_dict_comprehensions.py
    10. Exercise on comprehensions: exercise_3.py

python-advanced-concepts's People

Contributors

ch-sriram avatar

Stargazers

 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.