Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
#44 Python Tutorial for Beginners | Decorators
Play lesson

Python for Beginners (Full Course) | Programming Tutorial - #44 Python Tutorial for Beginners | Decorators

Unlock Python Mastery: Dive into 75+ Engaging Tutorials and Transform Your Programming Skills with Telusko Today!

5.0 (1)
23 learners

What you'll learn

Understand and set up Python development environments using PyCharm and Jupyter Notebook.
Learn to work with various Python data types, variables, and operators.
Master Python programming fundamentals, including loops, conditional statements, and functions.
Gain proficiency in file handling, error management, and utilizing Python libraries like NumPy for data manipulation.

This course includes

  • 17.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Check out our courses: Java Spring Boot AI Live Course: https://go.telusko.com/JavaSpringBootAI Coupon: TELUSKO20 (20% Discount) AI Powered DevOps with AWS - Live Course :- https://go.telusko.com/AIDevOps-AWS Coupon: TELUSKO20 (20% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Udemy Courses: Spring: https://go.telusko.com/udemyteluskospring Java:- https://go.telusko.com/udemyteluskojava Java Spring:- https://go.telusko.com/Udemyjavaspring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 TELUSKO Android App : https://go.telusko.com/TELUSKOAPP TELUSKO IOS App : https://apple.co/3SsgmU2 Discord : https://discord.gg/D8hWe9BqfF In this lecture we will learn: - Properties of functions - What are decorators in Python? - How to add extra features to a function? - Properties of Decorators - How to define decorators in Python? #1 - Functions are built to perform certain tasks. Properties of functions:- - We can also write a code for the function inside another function. - We can assign a function to another function in python as a function is also an object. - A function is an instance of the Object type. - We can store the function in a variable. - We can also pass the function as a parameter to another function. - A function from a function can also be returned. #2 - Decorators are used to add extra features to the existing functions. - Decorators can change the behaviour of an existing function at the compile itself. #3 Properties of Decorators:- -The outer function is called the decorator, which takes the original function as an argument and returns a modified version of it. - Decorator contains an outer function that also takes a function as an argument. - Inside the outer function, there is another function that takes a number of parameters as per the logic as an argument. - Inner function contains the code for the logic that must be contained in the previously defined normal function. - Inner function returns the values as per the required code that can be equal to the number of arguments passes in an inner function. - Outer function return an inner function. - In the main code, we have to call the outer function of a decorator and pass the normal function as an argument. Github :- https://github.com/navinreddy20/Python-

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere