I am working on a code that converts from Binary to Decimal to Hexadecimal. I have completed the code and it functions properly; however, I would like to know how I seperate nibbles with spaces. Currently, I have it all functioning, but it only works with binary numbers written as 11111111 not 1111 1111. Does anyone know how I can accommplish this?
user_input = int(input("Enter a binary value: "))
nBits = list(str(user_input))