string biner ke hex python

binary_string = input('Input Binary: ')

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

print(hexadecimal_string)
Weeke