| Conditions | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | View Code Duplication | class Counter: |
|
| 2 | def __init__(self, length=0): |
||
| 3 | """ |
||
| 4 | Counts number of iterations in a process. |
||
| 5 | :param length: Minimum string length of a returned count. Example - with a length of 3 the first count would |
||
| 6 | return '001'. |
||
| 7 | """ |
||
| 8 | self.counter = 0 |
||
| 9 | self.length = length |
||
| 10 | |||
| 41 |