chaîne binaire à Hex Python

binary_string = input('Input Binary: ')

decimal_representation = int(binary_string, 2)
hexadecimal_string = hex(decimal_representation)

print(hexadecimal_string)
Weeke