Python if statement checking for a £ pound sign in a string?
I have the following line which is causing me problems:
if "Total £" in studentfees:
returns:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 in position 4:
ordinal not in range(128)
How can I get around this?
Thanks in advance - Hyflex
No comments:
Post a Comment