Skip to content

Commit 2396b8b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f0f0692 commit 2396b8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

conversions/binary_to_gray.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
https://en.wikipedia.org/wiki/Gray_code
66
"""
77

8+
89
def binary_to_gray(binary: str) -> str:
910
"""
1011
Convert a binary number (as string) to its equivalent Gray code.

0 commit comments

Comments
 (0)