diff --git a/binary-hexadecimal-conversion.py b/binary-hexadecimal-conversion.py index 0fd19ee..d0b14bc 100644 --- a/binary-hexadecimal-conversion.py +++ b/binary-hexadecimal-conversion.py @@ -98,7 +98,6 @@ def hexToBinary(): binaryEquivalent='' for char in reversed(hexValue): #loop skipped for empty strings try: - print(binaryEquivalentsOfHex[char]) binaryEquivalent= binaryEquivalentsOfHex[char] +binaryEquivalent except KeyError: #if key is not in my list of valid conversions print('Error, you entered an invalid hex value. Try again') @@ -115,4 +114,4 @@ def isValidBinary(string): return True -showWelcomeScreen() \ No newline at end of file +showWelcomeScreen()