Monty @ The Python Coding Place @thepythoncodingplace.com · Mar 15

Now, you can use this variable, `counter`, to decide whether to call the function `func()` or not, depending on how many times the function has been used already:

0 likes 1 replies

?

Replies

Monty @ The Python Coding Place · Mar 15

If you're following along on your computer and you're using an IDE, you probably saw a warning or some squiggly red lines. Let's define a function and decorate it to try out this decorator and see what the problem is