hashlib.md5() TypeError: Unicode-objects must be encoded before hashing
I am new to coding and have ran into a problem trying to encode a string. Is (a) now considered to be encoded? Second question: When I run the same code above in a script I get this error: Traceback (most recent call last): File “C:/Users/User/Desktop/Logger/Encoding practice.py”, line 3, in a.update(‘hi’) TypeError: Unicode-objects must be … Read more