Here is a description of Finger Binary in Wikipedia.
Finger binary is a system for counting and displaying binary numbers on the fingers and thumbs of one or more hands. It is possible to count from 0 to 31(2^5−1) using the fingers of a single hand, or from 0 through 1023(2^10−1) if both hands are used.
- >>> print finger_binary(1) #doctest: +NORMALIZE_WHITESPACE
__
- | ___ ___
/ \
| / / __ __/ |/ | | | / / | | | _____
- | | | | | || | | |
| | | | /| | | | _/ | '--__'__/-' || '-__'__/--' _-'' / / / / | | | |- >>> print finger_binary(386) #doctest: +NORMALIZE_WHITESPACE
__ __ __
- / V / | | | | |
| | | |
| | | |
| | | |
|- ___ / __ __/ ___/ | ______| | || |
| | /| | | | | '__/-' || '-__'__/ | ) / ( / / / | | | |>>> print finger_binary(1024) #doctest: +ELLIPSIS Traceback (most recent call last): ... ValueError: n must be between 0 and 1023
Don't send finger_binary(128)
or finger_binary(4)
or finger_binary(132)
to your friends!
이거 Reddit에 한번 올려보지?