+ 1

[Solved] Why is @ Used In Python?

I Don't Know What is @ Used For in Python. I Thank That Person Very Much Who Helps Me Out...

2nd Aug 2021, 3:56 PM
Sancho Godinho
Sancho Godinho - avatar
1 Respuesta
+ 7
Hi Sancho! @ symbol is used to decorate in python. Decorators allow us to wrap another function in order to extend the behavior of wrapped function, without permanently modifying it. Here it is a full detailed answer. https://tutorialspoint.dev/language/python/decorators-in-python#:~:text=Decorators%20are%20very%20powerful%20and,function%2C%20without%20permanently%20modifying%20it.
3rd Aug 2021, 11:37 AM
Python Learner
Python Learner - avatar