#Hex Check
def Check(HexInput):
while HexInput!= Valid:
print('That is an invalid hex number.')
else:
print('That is an valid hex number.')
return HexInput
HexInput=input('Enter a hex number: ')
Valid='1234567890ABCDEFG'
When run, it outputs nothing when a hex number is entered. The program is aiming to process the users inputted Hex number and output whether it is a valid hex number or not.
Check(), but never called it. - g.d.d.c