Search code examples
pythonsyntax

What does the "at" (@) symbol do in Python?


What does the @ symbol do in Python?


Solution

  • An @ symbol at the beginning of a line is used for class and function decorators:

    An @ in the middle of a line is probably matrix multiplication: