Hi, next time please use proper tags for formating the post, you can find help here.
The error message suggests that the code variable holds a None value, which obviously cannot be compared to a number. So check the rest of your program to find how code becomes None. It could be you intended to assign code a result of a function with no return statement. By default functions return None. If you are unsure, post the rest of your code in Python code tags.
The error message suggests that the code variable holds a None value, which obviously cannot be compared to a number. So check the rest of your program to find how code becomes None. It could be you intended to assign code a result of a function with no return statement. By default functions return None. If you are unsure, post the rest of your code in Python code tags.