New course! Every coder should learn Generative AI!
Try a free lesson+ 1
That's exactly the problem. You are trying to subtract a string of a number. To turn the input into an integer, use the int method: int = int(input()).
Note that it's a bad idea to use names for variables like "int"