Explore Courses Blog Tutorials Interview Questions
0 votes
in Python by (12.7k points)

I just have a look at some Python code that utilized the @ symbol, however I have no clue about what it does. I likewise don't have the foggiest idea what to look for as looking through Python docs or Google doesn't restore important outcomes when the @ symbol is incorporated.

1 Answer

0 votes
by (26.4k points)

The @ symbol will be used for class, function and for method decorators, If it's used at the beginning of the line

The most common python decorators are @property, @classmethod, @staticmethod

In case, if @ is used in the middle of line, that will be different thing, matrix multiplication.

Join the python online course fast, to learn python concepts in detail and get certified.

Related questions

Browse Categories