Answer:
I think your error is in the line with the input statement asking for a number between 1-10. Input statements always take the input as a string, but on the next line you are trying to do an if statement with an integer. So you will have to cast the input from the input statement as an int. Below I have rewritten that line. Let me know if it worked!
notr = int(input("Select a number from 1-10 " )