This is because again, you're using
Also, I should have mentioned, but post code within "[python]" tags to preserve indentation and formatting. You can press the Python logo button to put a pair of tags in your post.
hex
as a variable name later on and overwriting the built in function. So, don't do that.Also, I should have mentioned, but post code within "[python]" tags to preserve indentation and formatting. You can press the Python logo button to put a pair of tags in your post.