Reversed Binary Numbers

This commit is contained in:
2023-07-02 21:17:40 +02:00
parent b8df7029f7
commit 8dac52bae6

1
reversebinary.py Normal file
View File

@@ -0,0 +1 @@
print(int(f"{int(input()):b}"[::-1], 2))