(value: int)
| 2 | mg.config.type_to_horizontal[list] = True # horizontal lists |
| 3 | |
| 4 | def binary(value: int) -> list[int]: |
| 5 | if value == 0: |
| 6 | return [] |
| 7 | quotient, remainder = divmod(value, 2) |
| 8 | return binary(quotient) + [remainder] |
| 9 | |
| 10 | result = binary(100) |
| 11 | print( result ) |