number = input("Please enter a number to convert to binary. ")
binaryNumber = ['','','','','','','','']
if enterNumber() > 128:
enterNumber() - 128
binaryNumber == 1
Try- Except ValueError
does loop as I intend it to however, it won't break. I've tried adding in
under the int(number), removing the
and added in the
to see if it will force the subroutine to stop and start the other but it still doesn't work.
I get an infinite loop of "Please enter a number to convert to binary."