Sunday, May 19, 2024

📑 Count in Two

📑 Task

1) Will the functions count1() and count2() count events independently of each other?
2) How can we define other Python objects that allow us
to count events in programs using the same rule?
For example, classes or generators

📑 Answer

1) Yes, the functions will count independently of each other
depending on the number of calls
2)

No comments:

Post a Comment